Skip to content

Commit 9068fcd

Browse files
committed
ci: add social changelog automation
1 parent ecc7e32 commit 9068fcd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- 'v*'
77
workflow_dispatch:
88

9+
permissions:
10+
models: read
11+
912
jobs:
1013
release:
1114
name: Release
@@ -41,3 +44,33 @@ jobs:
4144
run: pnpm changelogithub
4245
env:
4346
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
47+
48+
- name: Generate Social Changelog
49+
continue-on-error: true
50+
run: |
51+
pnpm social-changelog \
52+
--org azat-io \
53+
--repo eyecons \
54+
--name "Eyecons" \
55+
> social-post.txt
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
59+
- name: Post to Social Media
60+
continue-on-error: true
61+
run: |
62+
pnpm crosspost \
63+
--twitter \
64+
--bluesky \
65+
--mastodon \
66+
--file social-post.txt
67+
env:
68+
TWITTER_API_CONSUMER_KEY: ${{ secrets.TWITTER_API_CONSUMER_KEY }}
69+
TWITTER_API_CONSUMER_SECRET: ${{ secrets.TWITTER_API_CONSUMER_SECRET }}
70+
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
71+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
72+
BLUESKY_HOST: ${{ secrets.BLUESKY_HOST }}
73+
BLUESKY_IDENTIFIER: ${{ secrets.BLUESKY_IDENTIFIER }}
74+
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
75+
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
76+
MASTODON_HOST: ${{ secrets.MASTODON_HOST }}

0 commit comments

Comments
 (0)