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 <adrien@gallouet.fr>
  • Loading branch information
angt committed Jan 17, 2025
1 parent 65bb3bb commit ef16a0d
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.replace('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 ef16a0d

Please sign in to comment.