Skip to content

Commit

Permalink
ci: add pre-release (tsukinaha#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosette authored Oct 11, 2024
1 parent 74d351c commit cff24b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ jobs:
shell: powershell
run: |
cd artifact/tsukimi-x86_64-windows-gnu
7z.exe a ../tsukimi-x86_64-windows-gnu-gtk_416.7z ./*
mv ../tsukimi-x86_64-windows-gnu-installer.exe ../tsukimi-x86_64-windows-gnu-gtk_416-installer.exe
7z.exe a ../tsukimi-x86_64-windows-gnu.7z ./*
- name: Upload artifact
if: ${{ matrix.arch == 'x86_64-windows-gnu' }}
Expand Down Expand Up @@ -190,6 +189,10 @@ jobs:
id: tag
run: echo "TAG_NAME=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT

- name: Set prerelease variable
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-alpha')
run: echo "PRERELEASE=true" >> $GITHUB_ENV

- name: Upload Github Assets
uses: softprops/action-gh-release@v2
env:
Expand All @@ -202,3 +205,4 @@ jobs:
*.exe
tsukimi.sha512sum
tag_name: ${{ steps.tag.outputs.TAG_NAME }}
prerelease: ${{ env.PRERELEASE || false }}

0 comments on commit cff24b4

Please sign in to comment.