nostros/.github/workflows/notify.yml
2023-01-29 12:18:20 +01:00

21 lines
630 B
YAML

name: Post changelog
on:
release:
types: released
jobs:
post-changelog:
runs-on: ubuntu-latest
steps:
- name: Send changelog to telegram channel
uses: tyagdit/release-telegram-action@master
with:
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
channel: ${{ secrets.CHANGELOG_CHANNEL_ID }}
changelog: ${{ github.event.release.body }}
- name: 'Post to Nostr'
run: |
go install github.com/fiatjaf/noscl@latest
~/go/bin/noscl setprivate ${{ secrets.NOSTROS_PRIVATE_KEY }}
~/go/bin/noscl publish ${{ github.event.release.body }}