Use official deploy-pages action to deploy docs

This commit is contained in:
Mikołaj Pich 2023-05-25 22:16:59 +02:00
parent ecc58a4d8a
commit 6087e79308

View file

@ -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