From 969420b4121b522ab33c5001074cc4c2547dafaf Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Wed, 24 Apr 2024 15:55:15 +0100 Subject: [PATCH] workflow: Update to master to get workflow --- .github/workflows/gen_orig.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/gen_orig.yml diff --git a/.github/workflows/gen_orig.yml b/.github/workflows/gen_orig.yml new file mode 100644 index 000000000000..92c903e0c15d --- /dev/null +++ b/.github/workflows/gen_orig.yml @@ -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