Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ jobs:
version-template-extension:
version-file: Resources/GameData/kOS/kOS.version
artifacts: Resources/GameData LICENSE* README* CHANGELOG*

deploy-docs:
needs: create-release
uses: ./.github/workflows/deploy-docs.yml
with:
version-string: ${{ inputs.version-string }}
49 changes: 49 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on:
workflow_dispatch:
inputs:
version-string:
type: string
required: true
workflow_call:
inputs:
version-string:
type: string
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: install dependencies
id: deps
run: |
pip install sphinx
pip install sphinx_rtd_theme

- name: build docs
id: build
run: |
cd doc
make clean
make html SPHINXOPTS='-D version=${{ inputs.version-string }} -D release=${{ inputs.version-string }}'

- uses: actions/upload-pages-artifact@v5
with:
path: doc/gh-pages


deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5.0.0