Browse Source
Merge pull request #1121 from doccano/enhancement/mkdocsWorkflow
Add a workflow to deploy mkdocs
pull/1122/head
Hiroki Nakayama
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
18 additions and
0 deletions
-
.github/workflows/mkdocs-deployment.yml
-
docs/mkdocs.yml
|
@ -0,0 +1,18 @@ |
|
|
|
|
|
name: Publish docs via GitHub Pages |
|
|
|
|
|
on: |
|
|
|
|
|
push: |
|
|
|
|
|
branches: |
|
|
|
|
|
- master |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
|
build: |
|
|
|
|
|
name: Deploy docs |
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
steps: |
|
|
|
|
|
- name: Checkout main |
|
|
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
- name: Deploy docs |
|
|
|
|
|
uses: mhausenblas/mkdocs-deploy-gh-pages@master |
|
|
|
|
|
env: |
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
CONFIG_FILE: docs/mkdocs.yml |