mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-30 00:32:21 +00:00
27 lines
766 B
YAML
27 lines
766 B
YAML
name: build-and-deploy
|
|
on: push
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Git checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: '0.4.10'
|
|
# mdbook-version: 'latest'
|
|
|
|
# - run: mdbook build
|
|
|
|
# TODO: set GITHUB_TOKEN_DEPLOY_KEY
|
|
#- name: Deploy
|
|
# uses: peaceiris/actions-gh-pages@v3
|
|
# with:
|
|
# deploy_key: ${{ secrets.GITHUB_TOKEN_DEPLOY_KEY }}
|
|
# external_repository: KusionStack/kusionstack.github.io
|
|
# publish_dir: ./_build
|
|
# publish_branch: gh-pages
|
|
# user_name: 'github-actions[bot]'
|
|
# user_email: 'github-actions[bot]@users.noreply.github.com' |