mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-28 09:18:54 +00:00
61492ff11a
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
48 lines
1.5 KiB
Go
48 lines
1.5 KiB
Go
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
|
|
- name: vuepress
|
|
run: |
|
|
sudo rm -rf _book
|
|
npx vuepress build
|
|
echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
|
|
- name: Upload Vuepress dist
|
|
uses: docker://pcit/pages
|
|
if: github.repository == 'docker-practice/docker_practice'
|
|
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
|
|
PCIT_MESSAGE: Sync from yeasy/docker_practice@${{github.sha}} by PCIT
|
|
PCIT_TARGET_BRANCH: master
|
|
PCIT_USERNAME: khs1994
|
|
- name: Upload Vuepress dist to coding.net
|
|
uses: docker://pcit/pages
|
|
if: github.repository == 'docker-practice/docker_practice'
|
|
env:
|
|
PCIT_EMAIL: khs1994@khs1994.com
|
|
PCIT_GIT_TOKEN: ${{ secrets.CODING_GIT_TOKEN }}
|
|
PCIT_GIT_URL: git.dev.tencent.com/khs1994/docker_practice
|
|
PCIT_KEEP_HISTORY: "1"
|
|
PCIT_LOCAL_DIR: .vuepress/dist
|
|
PCIT_MESSAGE: Sync from yeasy/docker_practice@${{github.sha}} by PCIT
|
|
PCIT_TARGET_BRANCH: master
|
|
PCIT_USERNAME: khs1994
|