mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-10-17 07:31:34 +02:00
31 lines
771 B
YAML
31 lines
771 B
YAML
name: docs
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
paths: [ "docs/**" ]
|
|
pull_request:
|
|
branches: [ "develop" ]
|
|
paths: [ "docs/**" ]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout LWS Source
|
|
uses: actions/checkout@v4
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v6
|
|
- name: Install dependencies
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
python3 -m pip install mkdocs
|
|
python3 -m pip install mkdocs-swagger-ui-tag
|
|
python3 -m pip install mkdocs-schema-reader
|
|
python3 mkdocs build
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./site
|