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