Skip to content

Commit 243531d

Browse files
authored
Added a step to automatically publish to the discord announcnements channel (#36)
1 parent 16105d5 commit 243531d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@ jobs:
2222
CODEX_API_KEY: ${{ secrets.CODEX_API_KEY }}
2323
- run: npm publish --access public
2424
env:
25-
NPM_TOKEN: ${{secrets.CODEX_SDK_NPM_TOKEN}}
25+
NPM_TOKEN: ${{secrets.CODEX_SDK_NPM_TOKEN}}
26+
27+
- name: Notify Discord
28+
uses: SethCohen/github-releases-to-discord@v1
29+
with:
30+
webhook_url: ${{secrets.DISCORD_WEBHOOK_URL}}
31+
color: "2105893"
32+
username: "Codex SDK Release"
33+
avatar_url: "https://avatars.githubusercontent.com/u/175457154?s=200&v=4"
34+
content: "🚀 New SDK release is now available!"
35+
footer_title: "Codex SDK Changelog"
36+
reduce_headings: true
37+
remove_github_reference_links: false

0 commit comments

Comments
 (0)