Skip to content

Commit

Permalink
ci: consolidate documentation tasks into a single workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Ruiz Safont <[email protected]>
  • Loading branch information
psafont committed Oct 15, 2024
1 parent fa90dad commit 6cbcb2e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 40 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,40 @@ on:
branches: master

jobs:
ocaml:
name: Docs
xapi-hugo:
name: xapi (Hugo)
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.127.0'

- name: Build
run: |
cd doc
hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.repository == 'xapi-project/xen-api' }}
with:
deploy_key: ${{ secrets.ACTIONS_DOCS_DEPLOY_KEY }}
publish_dir: ./doc/public
user_name: 'Github action on xapi-project/xen-api'
user_email: 'github-actions-xapi-project-xen-api[bot]@users.noreply.github.com'
external_repository: xapi-project/xapi-project.github.io
publish_branch: master
destination_dir: new-docs # temporary staging branch
allow_empty_commit: false
enable_jekyll: true # do not create .nojekyll file

xapi-storage:
name: xapi-storage
runs-on: ubuntu-22.04
env:
XAPI_VERSION: "v0.0.0-${{ github.sha }}"
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/hugo.yml

This file was deleted.

0 comments on commit 6cbcb2e

Please sign in to comment.