Add release.yaml for 0.4 branch (#126)

This commit is contained in:
Chad Roberts 2024-11-15 12:20:36 -05:00 committed by GitHub
parent 70ff2a6f5f
commit 85c89f8b7b
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