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

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
1shin-7 authored Dec 24, 2022
1 parent 1669922 commit ac243f8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,22 @@ jobs:
run: cmake -GNinja -DCMAKE_BUILD_TYPE=Release -Bbuild
- name: Ninja build
run: cmake --build build
- name: Rename executable
run: |
if [[ "${{ matrix.os }}" == "Windows" ]]; then
mv build/genshin_patcher.exe build/genshin_patcher-${{ matrix.os }}_${{ matrix.arch }}.exe
elif [[ "${{ matrix.os }}" == "Linux" ]]; then
mv build/genshin_patcher build/genshin_patcher-${{ matrix.os }}_${{ matrix.arch }}
elif [[ "${{ matrix.os }}" == "Darwin" ]]; then
mv build/genshin_patcher build/genshin_patcher-${{ matrix.os }}_${{ matrix.arch }}
fi
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: GHP_${{ matrix.os }}_${{ matrix.arch }}
path: build/genshin_patcher*
- name: 2Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/genshin_patcher*"
allowUpdates: true

0 comments on commit ac243f8

Please sign in to comment.