[READ-ONLY] Mirror of https://github.com/flo-bit/svelte-depth-3d-component. svelte component to show a fake 3d image with depth map
flo-bit.dev/svelte-depth-3d-component/
1.0 kB
43 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
12 environment:
13 name: github-pages
14 url: ${{ steps.deployment.outputs.page_url }}
15
16 steps:
17 - name: Checkout
18 uses: actions/checkout@v3
19
20 - name: Install Node.js
21 uses: actions/setup-node@v3
22 with:
23 node-version: 18
24 cache: npm
25
26 - name: Install dependencies
27 run: npm install
28
29 - name: build
30 env:
31 BASE_PATH: '/${{ github.event.repository.name }}'
32 run: |
33 npm run build
34
35 - name: Deploy 🚀
36 uses: peaceiris/actions-gh-pages@v3 # This action will handle the deployment to gh-pages
37 with:
38 github_token: ${{ secrets.GITHUB_TOKEN }}
39 publish_dir: ./build
40 publish_branch: gh-pages
41 user_name: "github-actions[bot]"
42 user_email: "github-actions[bot]@users.noreply.github.com"
43 commit_message: "Deploy to GitHub Pages"