Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 committed Jul 2, 2024
1 parent 3cb68bd commit 9f1ead3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
matrix:
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '20'

Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get version from package.json
id: get_version
Expand All @@ -107,7 +107,7 @@ jobs:

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: elgohr/Github-Release-Action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -126,13 +126,14 @@ jobs:
# asset_name: fideo-${{ env.VERSION }}.exe

- name: Upload macOS Release Asset (x64)
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/fideo-${{ env.VERSION }}-x64.dmg
asset_name: fideo-${{ env.VERSION }}-x64.dmg
files: dist/fideo-${{ env.VERSION }}-x64.dmg
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: dist/fideo-${{ env.VERSION }}-x64.dmg
# asset_name: fideo-${{ env.VERSION }}-x64.dmg

# - name: Upload macOS Release Asset (arm)
# uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 9f1ead3

Please sign in to comment.