-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (43 loc) · 1.15 KB
/
Copy pathrelease.yml
File metadata and controls
50 lines (43 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release firmware
on:
push:
tags:
- "v*"
permissions:
contents: read
jobs:
build:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@v0.3.0
release:
needs: build
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Download firmware
uses: actions/download-artifact@v4
with:
name: firmware
path: dist
- name: Verify expected files and create checksums
shell: bash
run: |
set -euo pipefail
expected=(settings-reset.uf2 tiny18-left.uf2 tiny18-right.uf2)
for file in "${expected[@]}"; do
test -s "dist/${file}"
done
cd dist
sha256sum "${expected[@]}" > SHA256SUMS
- name: Publish GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: >-
gh release create "${GITHUB_REF_NAME}"
dist/settings-reset.uf2
dist/tiny18-left.uf2
dist/tiny18-right.uf2
dist/SHA256SUMS
--repo "${GITHUB_REPOSITORY}"
--title "Tiny18 firmware ${GITHUB_REF_NAME}"
--generate-notes