Fixed docs.yml
This commit is contained in:
1 parent
79df0d0f74
commit
1f1de4d822
1 file changed
+14
-16
+14
-16
@@ -2,31 +2,29 @@ name: github pages
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
|
||||||
- docs/**
|
|
||||||
- .github/workflows/docs.yml
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
environment: docs
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup mdBook
|
- name: Setup mdBook
|
||||||
uses: peaceiris/actions-mdbook@v1
|
uses: peaceiris/actions-mdbook@v1
|
||||||
with:
|
with:
|
||||||
mdbook-version: "0.4.10"
|
mdbook-version: '0.4.10'
|
||||||
|
# mdbook-version: 'latest'
|
||||||
|
|
||||||
- name: Build
|
- run: cd docs && mdbook build
|
||||||
run: cd docs && mdbook build -d ../build
|
|
||||||
|
|
||||||
- name: Deploy 🚀
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@v4.2.3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
with:
|
with:
|
||||||
branch: gh-pages # The branch the action should deploy to.
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
folder: build # The folder the action should deploy.
|
publish_dir: ./docs/book
|
||||||
clean: false
|
|
||||||
token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now
|
|
||||||
Reference in new issue
Block a user