post-publish.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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" https://github.com/cryptomator/cryptomator/archive/refs/tags/${{ github.event.release.tag_name }}.tar.gz --output cryptomator-${{ github.event.release.tag_name }}.tar.gz
  12. - name: Sign source tarball with key 615D449FE6E6A235
  13. run: |
  14. echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
  15. echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a cryptomator-*.tar.gz
  16. env:
  17. GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
  18. GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
  19. - name: Publish asc on GitHub Releases
  20. uses: softprops/action-gh-release@v2
  21. with:
  22. fail_on_unmatched_files: true
  23. token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
  24. files: |
  25. cryptomator-*.tar.gz.asc
  26. - name: Slack Notification
  27. uses: rtCamp/action-slack-notify@v2
  28. env:
  29. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
  30. SLACK_USERNAME: 'Cryptobot'
  31. SLACK_ICON: false
  32. SLACK_ICON_EMOJI: ':bot:'
  33. SLACK_CHANNEL: 'cryptomator-desktop'
  34. SLACK_TITLE: "Release ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} published."
  35. SLACK_MESSAGE: "Ready to <https://github.com/${{ github.repository }}/actions/workflows/debian.yml|build deb Package>."
  36. SLACK_FOOTER: false
  37. MSG_MINIMAL: true