From 1f61d8a056033ee80567ec3cc05061a8f4f4eca9 Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Sun, 8 Jan 2023 23:56:32 +0100 Subject: [PATCH] Create make_light_release.yml --- .github/workflows/make_light_release.yml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/make_light_release.yml diff --git a/.github/workflows/make_light_release.yml b/.github/workflows/make_light_release.yml new file mode 100644 index 00000000..e89d7607 --- /dev/null +++ b/.github/workflows/make_light_release.yml @@ -0,0 +1,29 @@ +# A workflow that creates a minimal archive with only the glm/ headers and copying.txt. + +name: Make light release + +on: + release: + types: [published] + +jobs: + make_zip: + runs-on: ubuntu-latest + + steps: + - name: Install dependencies + run: sudo apt-get update -y && sudo apt-get install -y zip p7zip + + - name: Prepare layout + run: mv copying.txt glm + + - name: Create zip archive + run: zip -r glm-${{ github.GITHUB_REF }}-light.zip glm + + - name: Create 7z archive + run: 7z a glm-${{ github.GITHUB_REF }}-light.7z glm + + - uses: actions/upload-artifact@v3 + with: + name: glm-${{ github.GITHUB_REF }}-light + path: glm-${{ github.GITHUB_REF }}-light.*