Use official deploy-pages action to deploy docs
This commit is contained in:
parent
ecc58a4d8a
commit
6087e79308
1 changed files with 17 additions and 6 deletions
23
.github/workflows/docs.yml
vendored
23
.github/workflows/docs.yml
vendored
|
@ -24,10 +24,21 @@ jobs:
|
|||
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
|
||||
- name: Generate docs
|
||||
run: ./gradlew mkdocsBuild
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BRANCH: docs
|
||||
FOLDER: build/mkdocs
|
||||
CLEAN: true
|
||||
path: ./build/mkdocs
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
pages: write
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
|
Loading…
Reference in a new issue