make_light_release.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # A workflow that creates a minimal archive with only the glm/ headers and copying.txt.
  2. name: Make light release
  3. on:
  4. release:
  5. types: [published]
  6. jobs:
  7. make_zip:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Install dependencies
  11. run: sudo apt-get update -y && sudo apt-get install -y zip p7zip
  12. - name: Check out repository code
  13. uses: actions/checkout@v4
  14. - name: Set env
  15. run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
  16. # - name: Prepare layout
  17. # run: mv copying.txt glm
  18. - name: Create zip archive
  19. run: zip -r glm-${{ env.RELEASE_VERSION }}.zip .
  20. - name: Create 7z archive
  21. run: 7z a glm-${{ env.RELEASE_VERSION }}.7z .
  22. - uses: actions/upload-artifact@v4
  23. with:
  24. name: glm-${{ env.RELEASE_VERSION }}
  25. path: glm-${{ env.RELEASE_VERSION }}.*
  26. - name: Add to Release
  27. uses: softprops/action-gh-release@v2
  28. with:
  29. files: |
  30. glm-${{ env.RELEASE_VERSION }}.zip
  31. glm-${{ env.RELEASE_VERSION }}.7z