From 1f61d8a056033ee80567ec3cc05061a8f4f4eca9 Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Sun, 8 Jan 2023 23:56:32 +0100 Subject: [PATCH 1/5] 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.* From b733265bc8efad455de8c46716eb1763dabe4755 Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Mon, 9 Jan 2023 00:04:03 +0100 Subject: [PATCH 2/5] Update make_light_release.yml --- .github/workflows/make_light_release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/make_light_release.yml b/.github/workflows/make_light_release.yml index e89d7607..d39f8a98 100644 --- a/.github/workflows/make_light_release.yml +++ b/.github/workflows/make_light_release.yml @@ -14,6 +14,9 @@ jobs: - name: Install dependencies run: sudo apt-get update -y && sudo apt-get install -y zip p7zip + - name: Check out repository code + uses: actions/checkout@v3 + - name: Prepare layout run: mv copying.txt glm From e83da44f0006d6a810f9817498b6b7cd33943eb7 Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Mon, 9 Jan 2023 00:24:56 +0100 Subject: [PATCH 3/5] Update make_light_release.yml --- .github/workflows/make_light_release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/make_light_release.yml b/.github/workflows/make_light_release.yml index d39f8a98..87cfc7b6 100644 --- a/.github/workflows/make_light_release.yml +++ b/.github/workflows/make_light_release.yml @@ -21,12 +21,18 @@ jobs: run: mv copying.txt glm - name: Create zip archive - run: zip -r glm-${{ github.GITHUB_REF }}-light.zip glm + run: zip -r glm-${{ github.ref }}-light.zip glm - name: Create 7z archive - run: 7z a glm-${{ github.GITHUB_REF }}-light.7z glm + run: 7z a glm-${{ github.ref }}-light.7z glm - uses: actions/upload-artifact@v3 with: - name: glm-${{ github.GITHUB_REF }}-light - path: glm-${{ github.GITHUB_REF }}-light.* + name: glm-${{ github.ref }}-light + path: glm-${{ github.ref }}-light.* + + - name: Add to Release + uses: softprops/action-gh-release@v1 + files: | + glm-${{ github.ref }}-light.zip + glm-${{ github.ref }}-light.7z From 783310c1aaf1418dc09027aac329826c562d9a0f Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Mon, 9 Jan 2023 00:26:16 +0100 Subject: [PATCH 4/5] Update make_light_release.yml --- .github/workflows/make_light_release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/make_light_release.yml b/.github/workflows/make_light_release.yml index 87cfc7b6..8f23e1cf 100644 --- a/.github/workflows/make_light_release.yml +++ b/.github/workflows/make_light_release.yml @@ -32,7 +32,8 @@ jobs: path: glm-${{ github.ref }}-light.* - name: Add to Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v1 + with: files: | glm-${{ github.ref }}-light.zip glm-${{ github.ref }}-light.7z From 24fd816df33be87fef30f901d3e651c9851f8c47 Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Mon, 9 Jan 2023 00:29:46 +0100 Subject: [PATCH 5/5] Update make_light_release.yml --- .github/workflows/make_light_release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/make_light_release.yml b/.github/workflows/make_light_release.yml index 8f23e1cf..78ebd1fb 100644 --- a/.github/workflows/make_light_release.yml +++ b/.github/workflows/make_light_release.yml @@ -17,23 +17,26 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Prepare layout run: mv copying.txt glm - name: Create zip archive - run: zip -r glm-${{ github.ref }}-light.zip glm + run: zip -r glm-${{ env.RELEASE_VERSION }}-light.zip glm - name: Create 7z archive - run: 7z a glm-${{ github.ref }}-light.7z glm + run: 7z a glm-${{ env.RELEASE_VERSION }}-light.7z glm - uses: actions/upload-artifact@v3 with: - name: glm-${{ github.ref }}-light - path: glm-${{ github.ref }}-light.* + name: glm-${{ env.RELEASE_VERSION }}-light + path: glm-${{ env.RELEASE_VERSION }}-light.* - name: Add to Release uses: softprops/action-gh-release@v1 with: files: | - glm-${{ github.ref }}-light.zip - glm-${{ github.ref }}-light.7z + glm-${{ env.RELEASE_VERSION }}-light.zip + glm-${{ env.RELEASE_VERSION }}-light.7z