source-release.yml 979 B

12345678910111213141516171819202122232425262728293031323334
  1. # This workflow creates a .tar.gz archive
  2. # with CloudCompare source code, including submodules
  3. # and should thus be suitable to be used to build CloudCompare.
  4. name: Create Source Bundle
  5. on:
  6. push:
  7. tags:
  8. - "v*.*.*"
  9. jobs:
  10. create-tar-gz:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v3
  15. with:
  16. path: CloudCompare
  17. submodules: true
  18. - name: Create tarball
  19. # Note `--exclude-vcs` is only available on GNU's tar
  20. run: tar --exclude-vcs -zcvf CloudCompare-${{ github.ref_name }}.tar.gz CloudCompare/
  21. - name: Create Sha256 Sum
  22. run: sha256sum CloudCompare-${{ github.ref_name }}.tar.gz > CloudCompare-${{ github.ref_name }}.tar.gz.sha256sum
  23. - name: Release
  24. uses: softprops/action-gh-release@v1
  25. with:
  26. files: |
  27. CloudCompare-${{ github.ref_name }}.tar.gz
  28. CloudCompare-${{ github.ref_name }}.tar.gz.sha256sum