[vuepress] push dist to coding.net

Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
pull/432/head
Kang HuaiShuai 2019-11-06 13:16:09 +08:00
parent 6f96aaf5a6
commit 61492ff11a
No known key found for this signature in database
GPG Key ID: 0A380828B1C243A7
1 changed files with 13 additions and 0 deletions

View File

@ -20,6 +20,7 @@ jobs:
run: | run: |
sudo rm -rf _book sudo rm -rf _book
npx vuepress build npx vuepress build
echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
- name: Upload Vuepress dist - name: Upload Vuepress dist
uses: docker://pcit/pages uses: docker://pcit/pages
if: github.repository == 'docker-practice/docker_practice' if: github.repository == 'docker-practice/docker_practice'
@ -32,3 +33,15 @@ jobs:
PCIT_MESSAGE: Sync from yeasy/docker_practice@${{github.sha}} by PCIT PCIT_MESSAGE: Sync from yeasy/docker_practice@${{github.sha}} by PCIT
PCIT_TARGET_BRANCH: master PCIT_TARGET_BRANCH: master
PCIT_USERNAME: khs1994 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