2019-08-31 18:36:00 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build GitBook
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
with:
|
|
|
|
fetch-depth: 2
|
|
|
|
- name: Build
|
|
|
|
uses: docker://yeasy/docker_practice
|
|
|
|
with:
|
|
|
|
args: build
|
2019-10-29 14:31:45 +08:00
|
|
|
- name: vuepress
|
|
|
|
run: |
|
2019-11-05 22:19:50 +08:00
|
|
|
rm -rf _book
|
2019-10-29 14:31:45 +08:00
|
|
|
npx vuepress build
|
|
|
|
- name: Upload Vuepress dist
|
|
|
|
uses: docker://pcit/pages
|
|
|
|
env:
|
|
|
|
PCIT_EMAIL: khs1994@khs1994.com
|
|
|
|
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
|
|
|
|
PCIT_GIT_URL: github.com/docker-practice/vuepress
|
|
|
|
PCIT_KEEP_HISTORY: "1"
|
|
|
|
PCIT_LOCAL_DIR: .vuepress/dist
|
2019-11-05 21:50:05 +08:00
|
|
|
PCIT_MESSAGE: Sync from yeasy/docker_practice@${{github.sha}} by PCIT
|
2019-10-29 14:31:45 +08:00
|
|
|
PCIT_TARGET_BRANCH: master
|
|
|
|
PCIT_USERNAME: khs1994
|