Merge pull request #176 from KyoriPowered/renovate/major-gradle-and-g… #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Making changes? https://github.com/nektos/act may help you test locally | |
name: "Publish main branch" | |
# TODO: Support multiple versions in parallel | |
on: | |
repository_dispatch: | |
types: [rebuild-docs] | |
push: | |
branches: | |
- "master" | |
- "main/*" | |
concurrency: | |
group: "${{ github.workflow }}" | |
cancel-in-progress: true | |
jobs: | |
build: | |
uses: "./.github/workflows/build-artifact.yaml" | |
publish: | |
needs: "build" | |
runs-on: "ubuntu-latest" | |
permissions: | |
pages: "write" | |
id-token: "write" | |
environment: | |
name: "github-pages" | |
url: "${{ steps.deployment.outputs.page_url }}" | |
steps: | |
- name: "artifact / restore" | |
uses: "actions/download-artifact@v4" | |
with: | |
name: "docs-html" | |
path: "build/html" | |
- name: "artifact / repackage" | |
uses: "actions/upload-pages-artifact@v3" | |
with: | |
path: "build/html" | |
- name: "deploy / pages" | |
id: "deployment" | |
uses: "actions/deploy-pages@v4" | |