summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..3fc66ea
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,35 @@
+name: release
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+permissions:
+ contents: write
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Determine version
+ id: version
+ run: |
+ tag="${GITHUB_REF_NAME}"
+ echo "version=${tag#v}" >>"$GITHUB_OUTPUT"
+
+ - name: Build tarball
+ run: make tarball
+
+ - name: Check release notes exist
+ run: test -f "Documentation/RelNotes/${{ steps.version.outputs.version }}.md"
+
+ - name: Create release
+ uses: softprops/action-gh-release@v2
+ with:
+ name: Sib version ${{ steps.version.outputs.version }}
+ body_path: Documentation/RelNotes/${{ steps.version.outputs.version }}.md
+ files: sib-${{ steps.version.outputs.version }}.tar.gz
+ fail_on_unmatched_files: true