post-publish.yml 1.1 KB

12345678910111213141516171819202122232425262728
  1. name: Post Release Publish Tasks
  2. on:
  3. release:
  4. types: [published]
  5. jobs:
  6. get-version:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Download source tarball
  10. run: |
  11. curl -L -H "Accept: application/vnd.github+json" ${{ github.event.release.tarball_url }} --output cryptomator-${{ github.event.release.tag_name }}.tar.gz
  12. - name: Sign source tarball with key 615D449FE6E6A235
  13. if: startsWith(github.ref, 'refs/tags/')
  14. run: |
  15. echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
  16. echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a cryptomator-*.tar.gz
  17. env:
  18. GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
  19. GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
  20. - name: Publish asc on GitHub Releases
  21. uses: softprops/action-gh-release@v1
  22. with:
  23. fail_on_unmatched_files: true
  24. token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
  25. files: |
  26. cryptomator-*.tar.gz.asc