This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
Update bundle #46
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
name: docs | |
on: | |
push: | |
branches: | |
- main | |
env: | |
SITE_DIR: "gh-pages" | |
jobs: | |
build_site: | |
name: "Build site with Antora" | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: "Generate site using antora site action" | |
uses: aolle/antora-site-action@main | |
with: | |
antora_playbook: site.yml | |
- name: "Upload generated site" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: site | |
path: "${{ github.workspace }}/${{ env.SITE_DIR }}" | |
deploy_site: | |
runs-on: [ubuntu-latest] | |
needs: [build_site] | |
name: "Deploy GitHub Pages" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download generated site | |
uses: actions/download-artifact@v3 | |
with: | |
name: site | |
path: "${{ github.workspace }}/${{ env.SITE_DIR }}" | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
# ACCESS_TOKEN: # optional | |
GITHUB_TOKEN: "${{ github.token}}" | |
FOLDER: "${{ env.SITE_DIR }}" | |
BRANCH: "gh-pages" | |
COMMIT_MESSAGE: "[CI] Publish Documentation for ${{ github.sha }}" |