File tree Expand file tree Collapse file tree 3 files changed +46
-10
lines changed
Expand file tree Collapse file tree 3 files changed +46
-10
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ # Trigger the workflow every time you push to the `main` branch
5+ push :
6+ branches : [ main ]
7+ # Allows you to run this workflow manually from the Actions tab on GitHub
8+ workflow_dispatch :
9+
10+ # Allow this job to clone the repo and create a page deployment
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout your repository using git
21+ uses : actions/checkout@v4
22+ - name : Install, build, and upload your site
23+ uses : withastro/action@v3
24+ with :
25+ # path: . # The root location of your Astro project inside the repository. (optional)
26+ # node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
27+ package-manager : bun@latest # Using Bun as the package manager since your project uses it
28+
29+ deploy :
30+ needs : build
31+ runs-on : ubuntu-latest
32+ environment :
33+ name : github-pages
34+ url : ${{ steps.deployment.outputs.page_url }}
35+ steps :
36+ - name : Deploy to GitHub Pages
37+ id : deployment
38+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11// @ts -check
22
33import { rehypeHeadingIds } from '@astrojs/markdown-remark'
4- import vercel from '@astrojs/vercel'
4+ // import vercel from '@astrojs/vercel'
55import AstroPureIntegration from 'astro-pure'
66import { defineConfig } from 'astro/config'
77import rehypeKatex from 'rehype-katex'
@@ -29,20 +29,18 @@ import config from './src/site.config.ts'
2929// https://astro.build/config
3030export default defineConfig ( {
3131 // Top-Level Options
32- site : 'https://astro-pure.js.org' ,
32+ site : 'https://lexciese.github.io' ,
33+ // base: 'lexciese.github.io',
3334 // base: '/docs',
3435 trailingSlash : 'never' ,
3536
3637 // Adapter
37- // https://docs.astro.build/en/guides/deploy/
38- // 1. Vercel (serverless)
39- adapter : vercel ( ) ,
40- output : 'server' ,
41- // 2. Vercel (static)
42- // adapter: vercelStatic(),
43- // 3. Local (standalone)
44- // adapter: node({ mode: 'standalone' }),
38+ // GitHub Pages requires static output
39+ output : 'static' ,
40+ // Removing Vercel adapter as it's not needed for GitHub Pages
41+ // adapter: vercel(),
4542 // output: 'server',
43+
4644 // ---
4745
4846 image : {
You can’t perform that action at this time.
0 commit comments