mirror of https://git.sr.ht/~garritfra/sabre
Garrit Franke
3 years ago
1 changed files with 19 additions and 20 deletions
@ -1,32 +1,31 @@ |
|||||||
on: |
on: |
||||||
push: |
push: |
||||||
branches: |
branches: |
||||||
- master |
- master |
||||||
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: npm ci && npm run build && touch book/.nojekyll |
BUILD_SCRIPT: touch book/.nojekyll |
||||||
CNAME: slashdev.space |
|
||||||
|
Loading…
Reference in new issue