release.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. name: Release
  2. on:
  3. push:
  4. tags:
  5. - boost-*
  6. jobs:
  7. release-posix:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v3
  11. with:
  12. path: ${{ github.ref_name }}
  13. submodules: true
  14. - name: Cleanup
  15. shell: bash
  16. run: |
  17. find ${{ github.ref_name }} -name ".git" -prune -exec rm -rf {} +
  18. - name: Create archives
  19. run: |
  20. tar -czf ${{ github.ref_name }}.tar.gz ${{ github.ref_name }}
  21. tar -cJf ${{ github.ref_name }}.tar.xz ${{ github.ref_name }}
  22. - uses: softprops/action-gh-release@v1
  23. with:
  24. files: |
  25. ${{ github.ref_name }}.tar.gz
  26. ${{ github.ref_name }}.tar.xz
  27. release-windows:
  28. runs-on: windows-latest
  29. needs: release-posix
  30. steps:
  31. - uses: actions/checkout@v3
  32. with:
  33. path: ${{ github.ref_name }}
  34. submodules: true
  35. - name: Cleanup
  36. shell: bash
  37. run: |
  38. find ${{ github.ref_name }} -name ".git" -prune -exec rm -rf {} +
  39. - name: Create archives
  40. shell: cmd
  41. run: |
  42. 7z a ${{ github.ref_name }}.zip ${{ github.ref_name }}
  43. 7z a ${{ github.ref_name }}.7z ${{ github.ref_name }}
  44. - uses: softprops/action-gh-release@v1
  45. with:
  46. files: |
  47. ${{ github.ref_name }}.zip
  48. ${{ github.ref_name }}.7z
粤ICP备19079148号