documentation #8
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: documentation | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
inputs: | |
deploy-to-gh-pages: | |
type: boolean | |
description: Deploy the documentation built with mkdocs to GitHub pages? | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: pip install mkdocs | |
- run: mkdocs build | |
if: github.event.inputs.deploy-to-gh-pages == 'false' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pharo-launcher-documentation | |
path: site | |
if: github.event.inputs.deploy-to-gh-pages == 'false' | |
- run: mkdocs gh-deploy --force | |
if: github.event.inputs.deploy-to-gh-pages == 'true' |