-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 968 Bytes
/
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
name: update-gh-pages
on:
push:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: prepare repo
uses: actions/checkout@v2
- name: prepare node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: build
run: |
git checkout gh-pages
git merge master
npm ci
npm run build
- name: commit
run: |
git config user.email "[email protected]"
git config user.name "github-actions"
git add .
git commit -m 'github-actions-commit'
- name: depoly
run: |
git remote remove origin
git remote add origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git
git push --set-upstream -f origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_REPO: ArisLittle/vue-little-minesweeper