Skip to content

Commit ec6a8ed

Browse files
authored
Add a release gh workflow
* Try a release action * remove validation * tag pattern fix * Do a draft release
1 parent 24c4de8 commit ec6a8ed

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v2[0-9].[0-9][0-9].[0-9]*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Extract version from tag
18+
id: version
19+
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
20+
21+
- name: Generate checksum
22+
run: sha256sum ffc.h > ffc.h.sha256
23+
24+
- name: Create GitHub Release
25+
uses: softprops/action-gh-release@v2
26+
with:
27+
name: ${{ steps.version.outputs.VERSION }}
28+
body: |
29+
## ${{ steps.version.outputs.VERSION }}
30+
31+
Drop `ffc.h` into your project and parse some floats or whatever
32+
33+
**Verify checksum:**
34+
```
35+
sha256sum -c ffc.h.sha256
36+
```
37+
files: |
38+
ffc.h
39+
ffc.h.sha256
40+
fail_on_unmatched_files: true
41+
generate_release_notes: true
42+
draft: true

0 commit comments

Comments
 (0)