Docs #172
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: Docs | |
on: | |
release: | |
types: [released] | |
workflow_dispatch: | |
jobs: | |
publish-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# VuePress 需要完整提交历史来生成贡献者信息 | |
with: | |
fetch-depth: 0 | |
- uses: imaegoo/vuepress-deploy@master | |
env: | |
ACCESS_TOKEN: ${{ secrets.TWIKOO_TOKEN }} | |
TARGET_REPO: twikoojs/twikoo | |
TARGET_BRANCH: gh-pages | |
BUILD_SCRIPT: cd docs && yarn && yarn docs:build | |
BUILD_DIR: .vitepress/dist | |
CNAME: twikoo.js.org |