Let’s figure out how to create our own Github Action!
This was inspired by our previous livestream where we added Generative Q&A to our app! It was awesome, and we made heavy use of the `embeddings-generator` Github Action by Supabase… so maybe we can create a similar one, just for syncing our markdown documents with our Supabase database, so we can more easily query them and render them in our SvelteKit app!
There are packages like https://www.npmjs.com/package/vite-pl... which make Vite projects import markdown files directly, but I feel there’s more opportunity when you’ve got your documents in your database; for example, it’s easier to have amazing search, and suggest similar content! But I do like the simple editing experience of a local markdown file, and dislike the extra work to create an admin interface with a markdown editor 😄
A Custom Github Action may allow us to have the best of both worlds, so let’s get to it!
🚀 Check out the app! https://johnnify.com/
💻 See the code, open-source and free: https://github.com/jmagrippis/johnnify
— COMMUNITY —
Our DISCORD SERVER 👾: / discord
— 🥳🥳🥳 —
— Agenda —
[ ] What are we doing today? What are GitHub actions?!
[ ] We’ve got a Generative Q&A app?! https://johnnify.com/ask
[ ] Let’s scaffold our Github Javascript Action: https://docs.github.com/en/actions/cr...
[ ] Let’s use Bun for this! https://bun.sh/guides/runtime/cicd
[ ] Let’s read a test markdown file!
[ ] Let’s read a test markdown file… with frontmatter!
[ ] Let’s save on work by identifying whether a file has changed
[ ] Supabase migration to create the expected table
[ ] Let’s have our action write to our database!
[ ] How can we best test this?!
[ ] Let’s cut a public release!
— BONUS —
[ ] Let’s use our action in a real project!
[ ] Let’s render our newly synced markdown transcripts into pages! https://github.com/markdown-it/markdo...
- [ ] Style our Transcripts
- [ ] Stripe webhook handling refactoring
- [ ] Create db user when they’ve bought a subscription without already having an account!
- [ ] Production-ize and ship!
- [ ] Protected posts!
- [ ] Allow users to change their display names!
- [ ] “Promo / where’s the value” section!
- [ ] Testimonials section!
- [ ] Next steps: ??? Profit?
— HAVE FUN —
No affiliations whatsoever: if I show something, you know you're hearing my unfiltered thoughts 😄
— Highlighted software —
Github: https://github.com/
Supabase: https://supabase.com/
SvelteKit: https://kit.svelte.dev/
My own website: https://magrippis.com/
Search for `@jmagrippis` to find me on socials like Instagram & Twitter! And remember our DISCORD SERVER 😉: / discord
Between the comment section and the socials, let me know *somewhere* what you’d like me to cover next 🙌