Skip to content

Commit

Permalink
chore: Add file listing in dist folder and update release asset uploa…
Browse files Browse the repository at this point in the history
…d method
  • Loading branch information
HashCookie committed May 27, 2024
1 parent a16379a commit 0f6c3b2
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: yarn dist

- name: List files in dist
run: ls -la dist

- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
Expand All @@ -40,6 +43,9 @@ jobs:
with:
name: electron-app-macos

- name: List files in dist
run: ls -la dist

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -52,11 +58,10 @@ jobs:
prerelease: false

- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
uses: ncipollo/release-action@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist
asset_name: casbin-editor-macos.zip
asset_content_type: application/zip
artifacts: 'dist/*'
token: ${{ secrets.GH_TOKEN }}
release_id: ${{ steps.create_release.outputs.id }}
name: casbin-editor-macos.zip
content_type: application/zip

0 comments on commit 0f6c3b2

Please sign in to comment.