Skip to content

Commit

Permalink
Add prerelease from master
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Gallouët <[email protected]>
  • Loading branch information
angt committed Jan 17, 2025
1 parent 65bb3bb commit 7c542cd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
Expand Down Expand Up @@ -34,5 +36,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" secret-*.gz \
--title "secret ${{ github.ref_name.replace('v', '') }}"
case "$GITHUB_REF" in
(refs/tags/*)
gh release create "$GITHUB_REF_NAME" secret-*.gz \
--title "secret ${GITHUB_REF_NAME#v}" \
--draft false --prerelease false ;;
(*)
gh release create "$GITHUB_SHA" secret-*.gz \
--title "secret $GITHUB_SHA" \
--draft false --prerelease true ;;
fi

0 comments on commit 7c542cd

Please sign in to comment.