This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix typo - Use haya14busa/action-cond to judge the system - Opt renaming - Fix upload failure due to incorrect mobile path
- Loading branch information
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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 |