Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao authored Feb 29, 2024
1 parent 159b1a6 commit a3f6136
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,15 @@ jobs:
run: flutter build linux --release
- name: Build Appimage
run: bash ./github_appimage_build.sh
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Linux Release
uses: actions/upload-artifact@v4
with:
name: Renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-linux
name: renamer-linux
path: build/linux/x64/release/bundle
- name: Linux Appimage Release
uses: actions/upload-artifact@v4
with:
name: Renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-appimage
name: renamer-appimage
path: Renamer-x86_64.AppImage
- uses: actions/setup-java@v2
with:
Expand All @@ -60,7 +57,7 @@ jobs:
- name: Android Release
uses: actions/upload-artifact@v1
with:
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-android
name: renamer-android
path: build/app/outputs/flutter-apk


Expand Down Expand Up @@ -89,13 +86,10 @@ jobs:
run: npm install enigmavirtualbox -g
- name: build single exe file
run: enigmavirtualbox cli ".\evb\renamer.evb"
- name: Set output
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Windows Release
uses: actions/upload-artifact@v4
with:
name: renamer-win-release
name: renamer-win
path: renamer.exe

build-and-release-macos:
Expand All @@ -119,24 +113,21 @@ jobs:
run: npm install -g appdmg
- name: build dmg
run: appdmg ./dmg/config.json ./build/macos/Build/Products/Release/renamer.dmg
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: macOS Release
uses: actions/upload-artifact@v4
with:
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-macos
name: renamer-macos
path: build/macos/Build/Products/Release/renamer.dmg
- name: Build ios
run: |
flutter build ios --release --no-codesign
ln -sf ./build/ios/iphoneos Payload
zip -r9 renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-release.ipa Payload/runner.app
zip -r9 renamer-release.ipa Payload/runner.app
- name: ios Release
uses: actions/upload-artifact@v4
with:
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-ios
path: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-release.ipa
name: renamer-ios
path: renamer-release.ipa


upload:
Expand All @@ -149,7 +140,13 @@ jobs:
steps:
- uses: actions/download-artifact@v3
with:
name: renamer-release
name: |
renamer-linux
renamer-appimage
renamer-android
renamer-win
renamer-macos
renamer-ios
path: ./renamer-release

- name: Install dependencies
Expand Down

0 comments on commit a3f6136

Please sign in to comment.