-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: Update to master to get workflow
- Loading branch information
1 parent
78df8a7
commit 969420b
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Generate release tarball for Raspberry Pi OS | ||
run-name: Generating release tarball for Raspberry Pi OS | ||
on: | ||
push: | ||
tags: # 1.YYYYMMDD | ||
- '1.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' | ||
workflow_dispatch: | ||
jobs: | ||
publish_tarball: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Generate tarball | ||
run: | | ||
git archive --format=tar \ | ||
--prefix="raspi-firmware-$GITHUB_REF_NAME/" "$GITHUB_REF_NAME" \ | ||
boot/LICENCE.broadcom 'boot/*.elf' 'boot/*.dat' 'boot/*.bin' \ | ||
-o "raspi-firmware_$GITHUB_REF_NAME.orig.tar" | ||
xz -T0 -9 "raspi-firmware_$GITHUB_REF_NAME.orig.tar" | ||
- name: Release tarball | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: raspi-firmware_*.orig.tar.xz |