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 d27db60 commit 7102a72
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
# if: ${{ runner.os == 'macOS' }}
# run: tar -czf fideo-mac-arm-${{ env.VERSION }}.tar.gz dist/fideo-${{ env.VERSION }}-arm64.dmg

- name: Upload Windows build artifact
if: ${{ runner.os == 'Windows' }}
uses: actions/upload-artifact@v2
with:
name: build-win-${{ env.VERSION }}
path: dist/fideo-${{ env.VERSION }}.exe
# - name: Upload Windows build artifact
# if: ${{ runner.os == 'Windows' }}
# uses: actions/upload-artifact@v2
# with:
# name: build-win-${{ env.VERSION }}
# path: dist/fideo-${{ env.VERSION }}.exe

- name: Upload macOS build artifacts (x64)
if: ${{ runner.os == 'macOS' }}
Expand All @@ -69,12 +69,12 @@ jobs:
name: build-mac-x64-${{ env.VERSION }}
path: dist/fideo-${{ env.VERSION }}-x64.dmg

- name: Upload macOS build artifacts (arm)
if: ${{ runner.os == 'macOS' }}
uses: actions/upload-artifact@v2
with:
name: build-mac-arm-${{ env.VERSION }}
path: dist/fideo-${{ env.VERSION }}-arm64.dmg
# - name: Upload macOS build artifacts (arm)
# if: ${{ runner.os == 'macOS' }}
# uses: actions/upload-artifact@v2
# with:
# name: build-mac-arm-${{ env.VERSION }}
# path: dist/fideo-${{ env.VERSION }}-arm64.dmg

release:
needs: build
Expand All @@ -83,23 +83,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Download Windows build artifact
uses: actions/download-artifact@v2
with:
name: build-win-${{ env.VERSION }}
path: .
# - name: Download Windows build artifact
# uses: actions/download-artifact@v2
# with:
# name: build-win-${{ env.VERSION }}
# path: .

- name: Download macOS build artifacts (x64)
uses: actions/download-artifact@v2
with:
name: build-mac-x64-${{ env.VERSION }}
path: .

- name: Download macOS build artifacts (arm)
uses: actions/download-artifact@v2
with:
name: build-mac-arm-${{ env.VERSION }}
path: .
# - name: Download macOS build artifacts (arm)
# uses: actions/download-artifact@v2
# with:
# name: build-mac-arm-${{ env.VERSION }}
# path: .

- name: Create Release
id: create_release
Expand All @@ -112,14 +112,14 @@ jobs:
draft: false
prerelease: false

- name: Upload Windows Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: fideo-${{ env.VERSION }}.exe
asset_name: fideo-${{ env.VERSION }}.exe
# - name: Upload Windows Release Asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: fideo-${{ env.VERSION }}.exe
# asset_name: fideo-${{ env.VERSION }}.exe

- name: Upload macOS Release Asset (x64)
uses: actions/upload-release-asset@v1
Expand All @@ -130,11 +130,11 @@ jobs:
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/fideo-${{ env.VERSION }}-arm64.dmg
asset_name: dist/fideo-${{ env.VERSION }}-arm64.dmg
# - name: Upload macOS Release Asset (arm)
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: dist/fideo-${{ env.VERSION }}-arm64.dmg
# asset_name: dist/fideo-${{ env.VERSION }}-arm64.dmg

0 comments on commit 7102a72

Please sign in to comment.