|
|
@ -5,27 +5,27 @@ on: |
|
|
|
name: Deploy to Github Pages |
|
|
|
name: Deploy to Github Pages |
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
deploy: |
|
|
|
deploy: |
|
|
|
name: deploy |
|
|
|
name: deploy |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@master |
|
|
|
- uses: actions/checkout@master |
|
|
|
|
|
|
|
|
|
|
|
- name: Setup mdBook |
|
|
|
- name: Setup mdBook |
|
|
|
uses: peaceiris/actions-mdbook@v1 |
|
|
|
uses: peaceiris/actions-mdbook@v1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
mdbook-version: "latest" |
|
|
|
mdbook-version: "latest" |
|
|
|
|
|
|
|
|
|
|
|
- name: setup python |
|
|
|
- name: setup python |
|
|
|
uses: actions/setup-python@v2 |
|
|
|
uses: actions/setup-python@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
python-version: 3.8 |
|
|
|
python-version: 3.8 |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
python build_docs.py |
|
|
|
python build_docs.py |
|
|
|
|
|
|
|
|
|
|
|
- name: Deploy |
|
|
|
- name: Deploy |
|
|
|
uses: JamesIves/github-pages-deploy-action@master |
|
|
|
uses: JamesIves/github-pages-deploy-action@master |
|
|
|
env: |
|
|
|
env: |
|
|
|
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
BRANCH: gh-pages |
|
|
|
BRANCH: gh-pages |
|
|
|
FOLDER: book |
|
|
|
FOLDER: book |
|
|
|
BUILD_SCRIPT: touch book/.nojekyll |
|
|
|
BUILD_SCRIPT: touch book/.nojekyll |
|
|
|