From a7f7b7fa1f04f53467191b5477c6d0cf3924866e Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Wed, 13 Nov 2024 09:45:03 +0100 Subject: [PATCH] ci: Announce release in Slack https://github.com/space-meridian/roadmap/issues/164 --- .github/workflows/publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b017886..6229232 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,9 +9,28 @@ jobs: - uses: actions/checkout@v4 - run: curl -L ${{ github.event.release.tarball_url }} > source.tar.gz - uses: filecoin-station/publish-zinnia-module-action@v0 + id: publish with: source: source.tar.gz w3up-private-key: ${{ secrets.W3UP_PRIVATE_KEY }} w3up-proof: ${{ secrets.W3UP_PROOF }} w3name-private-key: ${{ secrets.W3NAME_PRIVATE_KEY }} w3name-revision: ${{ secrets.W3NAME_REVISION }} + - uses: slackapi/slack-github-action@v1.27.0 + with: + channel-id: spark-public + payload: | + { + "text": "SPARK checker version ${{ github.event.release.tag_name }} released", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": " published to IPFS as " + } + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_SPARK_PUBLIC_TOKEN }}