summaryrefslogtreecommitdiff
path: root/.github/workflows/release.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yaml')
-rw-r--r--.github/workflows/release.yaml34
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"