-
Notifications
You must be signed in to change notification settings - Fork 44
39 lines (36 loc) · 1.05 KB
/
update-gh-pages.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
name: update gh-pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- name: Update gh-pages
run: |
echo $GITHUB_ACTOR
git config --local user.email "[email protected]"
git config --local user.name $GITHUB_ACTOR
git fetch --all
git checkout gh-pages
git pull
git reset --hard origin/master
rm -rf dist
- run: yarn build --env public-path=/Genoverse/dist/
- name: Commit and push files
run: |
echo $GITHUB_ACTOR
git config --local user.email "[email protected]"
git config --local user.name $GITHUB_ACTOR
git add -f dist
git commit -m "Added dist folder"
git push --force origin gh-pages