Add release.yaml for 0.5 branch (#127)

This commit is contained in:
Chad Roberts 2024-11-15 12:20:49 -05:00 committed by GitHub
parent b6f51e5c56
commit 60cbdf0bb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

23
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name : Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Create release on Github
run: |
if [[ "${{ github.ref_name }}" == *-rc* ]]; then
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes --prerelease
else
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes
fi