From f1848be8389ee97120609d6b859a18fe3173358f Mon Sep 17 00:00:00 2001 From: Adam Lofthouse-Hill <130778650+ALofthou@users.noreply.github.com> Date: Wed, 12 Jul 2023 01:23:03 +0100 Subject: [PATCH] feat(workflow): Add new workflow for Releases (#656) --- .github/workflows/Release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/Release.yml diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 00000000000..2096fd41d05 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,37 @@ +name: "Package Release Components" + +on: + release: + types: + - "published" + +permissions: + contents: write + +jobs: + release: + name: "Release" + runs-on: "ubuntu-latest" + steps: + - name: "Checkout the repository" + uses: "actions/checkout@v3.5.3" + + - name: "Archive Tools" + shell: "bash" + run: tar -cf Tools.tar.xz --use-compress-program='xz -9' ./Tools + + - name: "Archive Examples" + shell: "bash" + run: tar -cf Examples.tar.xz --use-compress-program='xz -9' ./Examples + + - name: "Archive Libraries" + shell: "bash" + run: tar -cf Libraries.tar.xz --use-compress-program='xz -9' ./Libraries + + - name: "Upload the achives to the release" + uses: softprops/action-gh-release@v0.1.15 + with: + files: | + ${{ github.workspace }}/Tools.tar.xz + ${{ github.workspace }}/Examples.tar.xz + ${{ github.workspace }}/Libraries.tar.xz