Skip to content

Commit a7f7b7f

Browse files
committed
ci: Announce release in Slack
CheckerNetwork/roadmap#164
1 parent bb41792 commit a7f7b7f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yml

+19
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,28 @@ jobs:
99
- uses: actions/checkout@v4
1010
- run: curl -L ${{ github.event.release.tarball_url }} > source.tar.gz
1111
- uses: filecoin-station/publish-zinnia-module-action@v0
12+
id: publish
1213
with:
1314
source: source.tar.gz
1415
w3up-private-key: ${{ secrets.W3UP_PRIVATE_KEY }}
1516
w3up-proof: ${{ secrets.W3UP_PROOF }}
1617
w3name-private-key: ${{ secrets.W3NAME_PRIVATE_KEY }}
1718
w3name-revision: ${{ secrets.W3NAME_REVISION }}
19+
- uses: slackapi/slack-github-action@v1.27.0
20+
with:
21+
channel-id: spark-public
22+
payload: |
23+
{
24+
"text": "SPARK checker version ${{ github.event.release.tag_name }} released",
25+
"blocks": [
26+
{
27+
"type": "section",
28+
"text": {
29+
"type": "mrkdwn",
30+
"text": "<Source code|${{ github.server_url }}/${{ github.repository }}/tree/${{ github.event.release.tag_name }}> published to IPFS as <https://${{ steps.publish.outputs.cid }}.ipfs.w3s.link|${{ steps.publish.outputs.cid }}>"
31+
}
32+
}
33+
]
34+
}
35+
env:
36+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_SPARK_PUBLIC_TOKEN }}

0 commit comments

Comments
 (0)