Skip to content

Commit 969420b

Browse files
committed
workflow: Update to master to get workflow
1 parent 78df8a7 commit 969420b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/gen_orig.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Generate release tarball for Raspberry Pi OS
2+
run-name: Generating release tarball for Raspberry Pi OS
3+
on:
4+
push:
5+
tags: # 1.YYYYMMDD
6+
- '1.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
7+
workflow_dispatch:
8+
jobs:
9+
publish_tarball:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repository code
15+
uses: actions/checkout@v4
16+
- name: Generate tarball
17+
run: |
18+
git archive --format=tar \
19+
--prefix="raspi-firmware-$GITHUB_REF_NAME/" "$GITHUB_REF_NAME" \
20+
boot/LICENCE.broadcom 'boot/*.elf' 'boot/*.dat' 'boot/*.bin' \
21+
-o "raspi-firmware_$GITHUB_REF_NAME.orig.tar"
22+
xz -T0 -9 "raspi-firmware_$GITHUB_REF_NAME.orig.tar"
23+
- name: Release tarball
24+
uses: softprops/action-gh-release@v2
25+
with:
26+
files: raspi-firmware_*.orig.tar.xz

0 commit comments

Comments
 (0)