Add GitHub automatic release (#173)

This automatically creates a GitHub release when a matching tag is created in this repository.
This commit is contained in:
James Pogran 2022-04-04 09:38:08 -04:00 committed by GitHub
parent c584f13cd4
commit 3672145e4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

20
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Publish GitHub Release
permissions:
contents: write # for creating a release and uploading release artifacts
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: GH Release
run: |
gh release create "${GITHUB_REF#refs/tags/}" --generate-notes
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}