[READ-ONLY] Mirror of https://github.com/flo-bit/flo-bit.github.io. my personal website, w/ astro, svelte, tailwind, typescript, threlte
flo-bit.dev/
portfolio
portfolio-website
svelte
sveltekit
tailwind
threejs
threlte
typescript
933 B
50 lines
1name: Deploy to GitHub Pages
2
3on:
4 push:
5 branches:
6 - main
7
8jobs:
9 build_site:
10 runs-on: ubuntu-latest
11 steps:
12 - name: Checkout
13 uses: actions/checkout@v4
14
15 - name: Install Node.js
16 uses: actions/setup-node@v4
17 with:
18 node-version: 18
19 cache: npm
20
21 - name: Install dependencies
22 run: npm install
23
24 - name: build
25 env:
26 BASE_PATH: '/${{ github.event.repository.name }}'
27 run: |
28 npm run build
29
30 - name: Upload Artifacts
31 uses: actions/upload-pages-artifact@v3
32 with:
33 path: 'dist/'
34
35 deploy:
36 needs: build_site
37 runs-on: ubuntu-latest
38
39 permissions:
40 pages: write
41 id-token: write
42
43 environment:
44 name: github-pages
45 url: ${{ steps.deployment.outputs.page_url }}
46
47 steps:
48 - name: Deploy
49 id: deployment
50 uses: actions/deploy-pages@v4