Skip to content

Commit 48efb84

Browse files
committed
fix: astro config
1 parent 9684d66 commit 48efb84

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,62 @@
11
name: Deploy to GitHub Pages
22

33
on:
4+
# Runs on pushes targeting the default branch
45
push:
5-
branches: [ main ]
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
69
workflow_dispatch:
710

11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
812
permissions:
913
contents: read
1014
pages: write
1115
id-token: write
1216

17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1319
concurrency:
1420
group: "pages"
1521
cancel-in-progress: false
1622

1723
jobs:
24+
# Build job
1825
build:
1926
runs-on: ubuntu-latest
2027
steps:
2128
- name: Checkout
2229
uses: actions/checkout@v4
2330

31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: '18'
35+
2436
- name: Setup Bun
25-
uses: oven-sh/setup-bun@v2
37+
uses: oven-sh/setup-bun@v1
2638
with:
2739
bun-version: latest
28-
40+
41+
- name: Setup Pages
42+
id: pages
43+
uses: actions/configure-pages@v4
44+
2945
- name: Install dependencies
3046
run: bun install
31-
47+
3248
- name: Build with Astro
3349
run: bun run build
34-
35-
- name: Setup Pages
36-
uses: actions/configure-pages@v5
37-
50+
51+
- name: Copy .nojekyll to dist
52+
run: cp .nojekyll ./dist/
53+
3854
- name: Upload artifact
3955
uses: actions/upload-pages-artifact@v3
4056
with:
4157
path: ./dist
4258

59+
# Deployment job
4360
deploy:
4461
environment:
4562
name: github-pages
@@ -49,4 +66,4 @@ jobs:
4966
steps:
5067
- name: Deploy to GitHub Pages
5168
id: deployment
52-
uses: actions/deploy-pages@v4
69+
uses: actions/deploy-pages@v4

.nojekyll

Whitespace-only changes.

astro.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@ import tailwind from '@astrojs/tailwind';
44

55
// https://astro.build/config
66
export default defineConfig({
7+
site: 'https://internrobotics.github.io',
8+
base: '/internvla-m1.github.io/',
79
integrations: [tailwind()],
10+
build: {
11+
assets: 'assets'
12+
},
813
});

0 commit comments

Comments
 (0)