mirror of https://git.sr.ht/~garritfra/sabre
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
694 B
31 lines
694 B
on: |
|
push: |
|
branches: |
|
- master |
|
name: Deploy to Github Pages |
|
jobs: |
|
deploy: |
|
name: deploy |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@master |
|
|
|
- name: Setup mdBook |
|
uses: peaceiris/actions-mdbook@v1 |
|
with: |
|
mdbook-version: "latest" |
|
|
|
- name: setup python |
|
uses: actions/setup-python@v2 |
|
with: |
|
python-version: 3.8 |
|
- run: | |
|
python build_docs.py |
|
|
|
- name: Deploy |
|
uses: JamesIves/github-pages-deploy-action@master |
|
env: |
|
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
BRANCH: gh-pages |
|
FOLDER: book |
|
BUILD_SCRIPT: touch book/.nojekyll
|
|
|