mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Allow documentation (re)generation in CI build
Provide a mechanism to allow the documentation to be force rebuilt.
This commit is contained in:
13
.github/workflows/documentation.yml
vendored
13
.github/workflows/documentation.yml
vendored
@@ -6,6 +6,11 @@ on:
|
||||
branches: [ main, maint/* ]
|
||||
release:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
force:
|
||||
description: 'Force rebuild'
|
||||
type: boolean
|
||||
required: true
|
||||
|
||||
concurrency:
|
||||
group: documentation
|
||||
@@ -42,8 +47,14 @@ jobs:
|
||||
working-directory: source
|
||||
- name: Generate documentation
|
||||
run: |
|
||||
args=""
|
||||
|
||||
if [ "${{ inputs.force }}" = "true" ]; then
|
||||
args="--force"
|
||||
fi
|
||||
|
||||
npm install
|
||||
./generate ../.. ../../../www/docs
|
||||
./generate $args ../.. ../../../www/docs
|
||||
working-directory: source/script/api-docs
|
||||
- name: Examine changes
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user