-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) 路 1 KB
/
Copy pathdeploy.yml
File metadata and controls
43 lines (39 loc) 路 1 KB
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
42
43
name: Node CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and build
env:
CI: true
run: |
cd vue-site
npm install
npm run build --if-present
- name: deploy
run: |
git clone git@github.com:bloriot97/names.git
cd names
git checkout gh-pages
rm -rf ./*
cp -r ../vue-site/dist/* ./
git config --global user.email "bloriot97@gmail.com"
git config --global user.name "GH CI Benjamin Loriot"
git add .
git commit -m 'Deploy '$GITHUB_SHA
git push --set-upstream origin gh-pages