-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 942 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish GitHub Pages
on:
push:
branches:
- main
jobs:
publish-gpr:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.18.0]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
- name: Install dependencies 📦️
run: yarn install
- name: build
run: |
yarn build
- name: deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: pages
- name: delete local gh-pages branch
run: |
git branch -d gh-pages
git clean -xdf
- name: create 404.html
uses: planetoftheweb/copy-to-branches@v1.2
env:
branches: gh-pages
key: main
files: 404.html