-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 874 Bytes
/
react.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: react-build-deploy
permissions:
contents: write
pull-requests: write
on:
push:
branches:
- "main"
paths:
- website/**
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run : cd ./website && npm i
shell: bash
- run : cd ./website && npm ci
shell: bash
- run : cd ./website && npm run build
shell: bash
- run : git config user.name github-actions
shell: bash
- run : git config user.email [email protected]
shell: bash
- run : cd ./website && git --work-tree dist add --all
- run : touch .nojekyll
shell: bash
- run : git commit -m "Automatic Build and Deploy run by GitHub Actions"
shell: bash
- run : git push origin HEAD:gh-pages --force
shell: bash