Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Commit

Permalink
😖Update workflow "release.yml"
Browse files Browse the repository at this point in the history
- Fix typo
- Use haya14busa/action-cond to judge the system
- Opt renaming
- Fix upload failure due to incorrect mobile path
  • Loading branch information
1shin-7 committed Dec 25, 2022
1 parent f9cabe9 commit aa3eb37
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,21 @@ jobs:
run: cmake -GNinja -DCMAKE_BUILD_TYPE=Release -Bbuild
- name: Ninja build
run: cmake --build build
- name: [Win] Rename executable
if: "${{ matrix.os }}" == "Windows"
run: ren build/genshin_patcher.exe patcher_windows-latest_amd64.exe
- name: [Unix] Rename executable
if: "${{ matrix.os }}" != "Windows"
run: mv build/genshin_patcher build/patcher_${{ matrix.os }}_${{ matrix.arch }}
- uses: haya14busa/action-cond@v1
id: get_command
with:
cond: ${{ matrix.os == 'windows-latest' }}
if_true: "ren build/genshin_patcher.exe patcher_windows-latest.exe"
if_false: "mv build/genshin_patcher build/patcher_${{ matrix.os }}"
- name: Rename executable
run: ${{ steps.get_command.outputs.value }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.1
with:
name: GHP_${{ matrix.os }}_${{ matrix.arch }}
path: build/genshin_patcher*
name: GHP_${{ matrix.os }}
path: build/patcher*
- name: 2Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/genshin_patcher*"
artifacts: "build/patcher*"
allowUpdates: true

0 comments on commit aa3eb37

Please sign in to comment.