glm/.github/workflows/make_light_release.yml

33 lines
808 B
YAML
Raw Normal View History

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 22:56:32 +00:00
- 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.*