Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Feb 28, 2024
1 parent e215e95 commit 4e7dad9
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ 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}}-$(git rev-parse --short HEAD)-linux
name: Renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-linux
path: build/linux/x64/release/bundle
- name: Linux Appimage Release
uses: actions/upload-artifact@v4
with:
name: Renamer-${{github.ref_name}}-$(git rev-parse --short HEAD)-linux
name: Renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-appimage
path: Renamer-x86_64.AppImage

build-and-release-windows:
Expand Down Expand Up @@ -68,15 +71,18 @@ jobs:
# run: enigmavirtualbox gen ".\renamer.evb" ".\renamer-bundled.exe" ".\renamer.exe" ".\renamer.dat"
# - name: build single exe file
# run: enigmavirtualbox cli ".\renamer.evb"
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
# - name: Windows Release
# uses: actions/upload-artifact@v4
# with:
# name: renamer-${{github.ref_name}}-$(git rev-parse --short HEAD)-windows
# name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-windows
# path: renamer.exe
- name: Windows Release
uses: actions/upload-artifact@v4
with:
name: renamer-${{github.ref_name}}-$(git rev-parse --short HEAD)-windows
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-windows
path: build/windows/x64/runner/Release

build-and-release-macos:
Expand All @@ -101,9 +107,12 @@ 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}}-$(git rev-parse --short HEAD)-macos
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-macos
path: build/macos/Build/Products/Release/renamer.dmg

0 comments on commit 4e7dad9

Please sign in to comment.