-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 958 Bytes
/
depoly-github.yml
File metadata and controls
38 lines (38 loc) · 958 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: deploy-github
on:
push:
branches:
- 1.x
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: use Node.js 10
uses: actions/setup-node@v1
with:
node-version: 10
- name: bootstrap and build
run: |
npm install lerna -g
lerna bootstrap
npm run build
cd mdpress
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git init
git add -A
git commit -m 'deploy'
env:
SITE_TARGET: 'github'
- name: Push site
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'gh-pages-github'
force: true
directory: 'mdpress'
env:
CI: true