post-publish.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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
  27. - name: Slack Notification
  28. uses: rtCamp/action-slack-notify@v2
  29. env:
  30. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
  31. SLACK_USERNAME: 'Cryptobot'
  32. SLACK_ICON: false
  33. SLACK_ICON_EMOJI: ':bot:'
  34. SLACK_CHANNEL: 'cryptomator-desktop'
  35. SLACK_TITLE: "Release ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} published."
  36. SLACK_MESSAGE: "Ready to <https://github.com/${{ github.repository }}/actions/workflows/debian.yml|deploy to PPA>."
  37. SLACK_FOOTER: false
  38. MSG_MINIMAL: true