Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fix: pass tag to gh release create
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jun 22, 2024
1 parent bd29036 commit bd81d12
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,16 @@ jobs:
GH_TOKEN: ${{ secrets.repo-token }}
tag: ${{ github.sha }}
run: |
gh release create \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes \
--draft \
./artifacts/*
echo "Release without tag not supported"
exit 1
- name: Create release with tag
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ secrets.repo-token }}
tag: ${{ github.ref_name }}
run: |
gh release create \
gh release create ${{ env.tag }} \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes \
Expand Down

0 comments on commit bd81d12

Please sign in to comment.