-
-
Notifications
You must be signed in to change notification settings - Fork 29
Add ATProto episode publishing with GitHub Actions #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f6c113c
51f2d0b
9291cb1
99b21db
c87dd2a
7f3202b
3c188fc
d294735
a133f59
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import type { APIRoute } from 'astro'; | ||
| import { generatePublicationWellKnown } from '@bryanguffey/astro-standard-site'; | ||
| import starpodConfig from '../../../starpod.config'; | ||
|
|
||
| export const GET: APIRoute = () => { | ||
| const { standardSite } = starpodConfig; | ||
|
|
||
| if (!standardSite) { | ||
| return new Response('standard.site not configured', { status: 404 }); | ||
| } | ||
|
|
||
| return new Response( | ||
| generatePublicationWellKnown({ | ||
| did: standardSite.did, | ||
| publicationRkey: standardSite.publicationRkey | ||
| }), | ||
| { headers: { 'Content-Type': 'text/plain' } } | ||
| ); | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,5 +32,9 @@ export default defineStarpodConfig({ | |
| spotify: 'https://open.spotify.com/show/19jiuHAqzeKnkleQUpZxDf', | ||
| youtube: 'https://www.youtube.com/@WhiskeyWebAndWhatnot/' | ||
| }, | ||
| rssFeed: 'https://rss.flightcast.com/w7bqgc792i30fd43a32uawx0.xml' | ||
| rssFeed: 'https://rss.flightcast.com/w7bqgc792i30fd43a32uawx0.xml', | ||
| standardSite: { | ||
| did: 'did:plc:your-did-here', | ||
| publicationRkey: 'your-publication-rkey-here' | ||
| } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cant this pull from config, or config pull from this? should only need written once
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved to environment variables ( |
||
| }); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may need better instructions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with env vars and added setup instructions in
CLAUDE.mdunder Environment Variables — includes where to find your DID and how to get the publication rkey. Fixed in 51f2d0b.