2023-01-08 22:56:32 +00:00
|
|
|
# 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
|
|
|
|
|
2023-01-08 23:04:03 +00:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2023-01-08 23:29:46 +00:00
|
|
|
- name: Set env
|
|
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
|
2024-03-05 14:53:12 +00:00
|
|
|
# - name: Prepare layout
|
|
|
|
# run: mv copying.txt glm
|
2023-01-08 22:56:32 +00:00
|
|
|
|
|
|
|
- name: Create zip archive
|
2024-03-05 14:53:12 +00:00
|
|
|
run: zip -r glm-${{ env.RELEASE_VERSION }}.zip .
|
2023-01-08 22:56:32 +00:00
|
|
|
|
|
|
|
- name: Create 7z archive
|
2024-03-05 14:53:12 +00:00
|
|
|
run: 7z a glm-${{ env.RELEASE_VERSION }}.7z .
|
2023-01-08 22:56:32 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2024-03-05 14:53:12 +00:00
|
|
|
name: glm-${{ env.RELEASE_VERSION }}
|
|
|
|
path: glm-${{ env.RELEASE_VERSION }}.*
|
2023-01-08 23:24:56 +00:00
|
|
|
|
|
|
|
- name: Add to Release
|
2023-01-08 23:26:16 +00:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
2023-01-08 23:24:56 +00:00
|
|
|
files: |
|
2024-03-05 14:53:12 +00:00
|
|
|
glm-${{ env.RELEASE_VERSION }}.zip
|
|
|
|
glm-${{ env.RELEASE_VERSION }}.7z
|