Update workflows config.
This commit is contained in:
parent
df0631620d
commit
1fa4d7f1ef
|
|
@ -1,17 +1,33 @@
|
||||||
name: GitHub Actions Build and Deploy linux-command
|
name: GitHub Actions Build and Deploy linux-command
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@master
|
||||||
uses: actions/checkout@master
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '10.x'
|
||||||
|
|
||||||
|
# - name: Cache dependencies
|
||||||
|
# uses: actions/cache@v1
|
||||||
|
# with:
|
||||||
|
# path: ~/.npm
|
||||||
|
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
# restore-keys: |
|
||||||
|
# ${{ runner.os }}-node-
|
||||||
|
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run start
|
||||||
|
|
||||||
- name: Build and Deploy
|
- name: Build and Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@master
|
uses: peaceiris/actions-gh-pages@v2.5.0
|
||||||
env:
|
env:
|
||||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
BASE_BRANCH: master
|
PUBLISH_BRANCH: gh-pages
|
||||||
BRANCH: gh-pages
|
PUBLISH_DIR: ./.deploy
|
||||||
FOLDER: .deploy
|
|
||||||
BUILD_SCRIPT: npm install && npm run build
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue