File tree Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 11name : Deploy to GitHub Pages
22
33on :
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
812permissions :
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.
1319concurrency :
1420 group : " pages"
1521 cancel-in-progress : false
1622
1723jobs :
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
4966 steps :
5067 - name : Deploy to GitHub Pages
5168 id : deployment
52- uses : actions/deploy-pages@v4
69+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -4,5 +4,10 @@ import tailwind from '@astrojs/tailwind';
44
55// https://astro.build/config
66export default defineConfig ( {
7+ site : 'https://internrobotics.github.io' ,
8+ base : '/internvla-m1.github.io/' ,
79 integrations : [ tailwind ( ) ] ,
10+ build : {
11+ assets : 'assets'
12+ } ,
813} ) ;
You can’t perform that action at this time.
0 commit comments