Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/discussions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sync Article Discussions

on:
push:
branches:
- main
paths:
- 'src/content/articles/**'
workflow_dispatch:

jobs:
sync_discussions:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install dependencies
run: npm ci || npm install --legacy-peer-deps

- name: Run script
env:
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
GITHUB_REPO_NAME: ${{ github.event.repository.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node scripts/create-discussion.mjs

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +13 to +31

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
Binary file not shown.
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import remarkMath from 'remark-math'
import rehypeKatex from 'rehype-katex'
import mdx from '@astrojs/mdx'
import cloudflare from '@astrojs/cloudflare'
import react from '@astrojs/react'

export default defineConfig({
site: 'https://4byte.dev',
Expand All @@ -25,6 +26,7 @@ export default defineConfig({
},
],
integrations: [
react(),
UnoCSS(),
mdx(),
icon(),
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@astrojs/cloudflare": "^13.1.7",
"@astrojs/mdx": "^5.0.2",
"@astrojs/partytown": "^2.1.5",
"@astrojs/react": "^5.0.2",
"@astrojs/sitemap": "^3.7.1",
"@resvg/resvg-js": "^2.6.2",
"astro": "^6.0.5",
Expand All @@ -32,6 +33,8 @@
"gray-matter": "^4.0.3",
"jose": "^6.2.2",
"katex": "^0.16.40",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"rehype-katex": "^7.0.1",
"remark-math": "^6.0.0",
"satori": "^0.25.0",
Expand Down
Loading
Loading