diff options
| author | seth <[email protected]> | 2024-05-21 19:53:34 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-05-21 20:07:55 -0400 |
| commit | e8615964144b92d910fca165debcb68a0ffecf88 (patch) | |
| tree | 6307a7a79fb3b1b8458554d3cb9ccf09bb2fad05 /.github/workflows/release.yaml | |
initial commitv0.1.0
Diffstat (limited to '.github/workflows/release.yaml')
| -rw-r--r-- | .github/workflows/release.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ac45bf3 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + tags: ["v*.*.*"] + workflow_dispatch: + inputs: + tag: + description: "Existing tag to draft a release for" + required: true + +jobs: + release: + name: Create release + + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + + - name: Run `gh` + env: + GH_TOKEN: ${{ github.token }} + TAG: ${{ inputs.tag || github.ref_name }} + run: | + gh release create \ + --draft \ + --notes-from-tag \ + --verify-tag \ + "$TAG" |
