You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
39 lines
971 B
39 lines
971 B
# 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: Check out repository code |
|
uses: actions/checkout@v3 |
|
|
|
- name: Prepare layout |
|
run: mv copying.txt glm |
|
|
|
- name: Create zip archive |
|
run: zip -r glm-${{ github.ref }}-light.zip glm |
|
|
|
- name: Create 7z archive |
|
run: 7z a glm-${{ github.ref }}-light.7z glm |
|
|
|
- uses: actions/upload-artifact@v3 |
|
with: |
|
name: glm-${{ github.ref }}-light |
|
path: glm-${{ github.ref }}-light.* |
|
|
|
- name: Add to Release |
|
uses: softprops/action-gh-release@v1 |
|
with: |
|
files: | |
|
glm-${{ github.ref }}-light.zip |
|
glm-${{ github.ref }}-light.7z
|
|
|