Skip to content

Commit

Permalink
chore: update release job
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoBorzi committed Nov 13, 2024
1 parent 8b30813 commit 5d936f5
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,20 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build project
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
npm run electron:mac
mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}.dmg" ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg
zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-x64.dmg.zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg
mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}-arm64.dmg" ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg
zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg.zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg
mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}.dmg" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg"
zip "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg.zip" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg"
mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}-arm64.dmg" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg"
zip "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg.zip" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg"
rm -rf release
rm -rf *.yml
rm -rf *.blockmap
rm -rf *.dmg
rm -rf release/*.yml
rm -rf release/*.blockmap
rm -rf release/*.dmg
rm -f *.yml *.blockmap *.dmg
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
Expand All @@ -105,8 +102,9 @@ jobs:
draft: true
prerelease: false
files: |
${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-x64.dmg.zip
${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-arm64.dmg.zip
${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg.zip
${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg.zip
build-on-windows:
needs: get-package-version
Expand Down

0 comments on commit 5d936f5

Please sign in to comment.