From 0f6c3b257f84e28fb1aca6fd9b9a4aaf3b0fcae9 Mon Sep 17 00:00:00 2001 From: hashcookie Date: Mon, 27 May 2024 10:12:40 +0800 Subject: [PATCH] chore: Add file listing in dist folder and update release asset upload method --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 194da5e..6834096 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 @@ -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