Skip to content

Commit

Permalink
Updated site-generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeklund committed Sep 26, 2024
1 parent 67d0fee commit 243b4ae
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@ name: docs
on:
push:
branches:
- ocp-4
- master
env:
SITE_DIR: "gh-pages"
jobs:
build_site:
name: "Build site with Antora"
runs-on: [ubuntu-latest]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: "Generate site using antora site action"
uses: kameshsampath/antora-site-action@master
with:
antora_playbook: site.yml
- name: "Upload generated site"
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v2
with:
name: site
path: "${{ github.workspace }}/${{ env.SITE_DIR }}"
Expand All @@ -35,10 +38,5 @@ jobs:
name: site
path: "${{ github.workspace }}/${{ env.SITE_DIR }}"
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
# ACCESS_TOKEN: # optional
GITHUB_TOKEN: "${{ github.token}}"
FOLDER: "${{ env.SITE_DIR }}"
BRANCH: "gh-pages"
COMMIT_MESSAGE: "[CI] Publish Documentation for ${{ github.sha }}"
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 243b4ae

Please sign in to comment.