Skip to content

Commit

Permalink
Prerelease workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
piyoppi committed Oct 30, 2024
1 parent f5712c3 commit 910f51a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
tags:
- 'v*.*.*'

jobs:
build:
strategy:
Expand Down Expand Up @@ -104,9 +105,17 @@ jobs:
prerelease: true
files: chiritori-*

- name: Create Release(Release)
- name: Create Release (Release)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-alpha') && !contains(github.ref, '-beta')
with:
tag_name: ${{ github.ref }}
files: chiritori-*

- name: Create Release (Prerelease)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v') && (contains(github.ref, '-alpha') || contains(github.ref, '-beta'))
with:
tag_name: ${{ github.ref }}
files: chiritori-*
prerelease: true

0 comments on commit 910f51a

Please sign in to comment.