Skip to content

Commit a9b05e5

Browse files
committed
gh
1 parent e867ae7 commit a9b05e5

File tree

3 files changed

+46
-10
lines changed

3 files changed

+46
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

astro.config.mjs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22

33
import { rehypeHeadingIds } from '@astrojs/markdown-remark'
4-
import vercel from '@astrojs/vercel'
4+
// import vercel from '@astrojs/vercel'
55
import AstroPureIntegration from 'astro-pure'
66
import { defineConfig } from 'astro/config'
77
import rehypeKatex from 'rehype-katex'
@@ -29,20 +29,18 @@ import config from './src/site.config.ts'
2929
// https://astro.build/config
3030
export 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: {

bun.lockb

-16.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)