Fix/care invert connection #3506
Workflow file for this run
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: document | |
on: | |
schedule: | |
- cron: 0 0 * * * | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
document: | |
name: build document | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.10.15" | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "latest" | |
- name: Install | |
run: uv sync | |
- name: Set env | |
run: echo "GITHUB_TOKEN=${{ secrets.WAMV_TAN_BOT_SECRET }}" >> $GITHUB_ENV | |
- name: Run kibot | |
working-directory: circuits | |
run: sh run_kibot.sh | |
- name: Generate documentation | |
run: uv run mkdocs build | |
working-directory: docs | |
env: | |
SHOW_DASHBOARD: true | |
- uses: actions/upload-artifact@v4 | |
if: ${{ github.event_name == 'pull_request'}} | |
with: | |
name: site | |
path: docs/site | |
- uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.event_name != 'pull_request'}} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/site |