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: |
||||
push: |
||||
branches: |
||||
- master |
||||
push: |
||||
branches: |
||||
- master |
||||
name: Deploy to Github Pages |
||||
jobs: |
||||
deploy: |
||||
name: deploy |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
name: deploy |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- uses: actions/checkout@master |
||||
|
||||
- name: Setup mdBook |
||||
uses: peaceiris/actions-mdbook@v1 |
||||
with: |
||||
mdbook-version: 'latest' |
||||
|
||||
uses: peaceiris/actions-mdbook@v1 |
||||
with: |
||||
mdbook-version: "latest" |
||||
|
||||
- name: setup python |
||||
uses: actions/setup-python@v2 |
||||
with: |
||||
uses: actions/setup-python@v2 |
||||
with: |
||||
python-version: 3.8 |
||||
run: | |
||||
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: npm ci && npm run build && touch book/.nojekyll |
||||
CNAME: slashdev.space |
||||
uses: JamesIves/github-pages-deploy-action@master |
||||
env: |
||||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
BRANCH: gh-pages |
||||
FOLDER: book |
||||
BUILD_SCRIPT: touch book/.nojekyll |
||||
|
Loading…
Reference in new issue