-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 954 Bytes
/
ci.yaml
File metadata and controls
38 lines (36 loc) · 954 Bytes
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: THREE-CI
on:
push:
branches: [three]
jobs:
build:
env:
MY_SECRET: ${{secrets.TOKEN}}
PUBLISH_DIR: vue-proj/dist
environment:
name: production
url: https://tomoyd.github.io/three/
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install package
run: |
cd vue-proj
npm install
npm run build
- name: Deploy
run: |
cd $PUBLISH_DIR
git init
git remote add origin https://$MY_SECRET@github.com/Tomoyd/three.git
git config user.name 'Tomoyd'
git config user.email '${{secrets.USER_EMAIL}}'
git checkout -b gh-pages
git add -A
git commit -m 'deploy'
git push origin gh-pages -f
echo 🤘 deploy gh-pages complete.