Skip to content

Commit

Permalink
added create release
Browse files Browse the repository at this point in the history
  • Loading branch information
ponkio-o committed May 9, 2024
1 parent 00a5a41 commit ebfa31b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,23 @@ jobs:
with:
aqua_version: v2.27.3

- uses: nowsprinting/check-version-format-action@98485692a883d962227b09f40f29a63de0771299 # v4.0.2
id: version
with:
prefix: "v"

- name: Create pre-release
if: steps.version.outputs.is_stable != 'true'
run: gh release create --prerelease --title ${{ github.ref_name }} ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
if: steps.version.outputs.is_stable == 'true'
run: gh release create --latest --title ${{ github.ref_name }} ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run goreleaser
run: goreleaser release --clean
env:
Expand Down

0 comments on commit ebfa31b

Please sign in to comment.