2020-10-23 23:03:50 +10:30
|
|
|
name: publish-api-documentation
|
|
|
|
|
|
|
|
on:
|
2020-10-24 13:08:10 +10:30
|
|
|
workflow_dispatch:
|
2020-10-23 23:03:50 +10:30
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v3.*
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-05-17 12:14:47 +07:00
|
|
|
- uses: actions/checkout@v4
|
2020-10-23 23:03:50 +10:30
|
|
|
with:
|
2020-10-24 13:13:19 +10:30
|
|
|
fetch-depth: 0
|
2020-10-24 16:59:55 +10:30
|
|
|
ref: "gh-pages"
|
2024-05-17 12:14:47 +07:00
|
|
|
- uses: actions/setup-python@v5
|
2020-10-23 23:03:50 +10:30
|
|
|
with:
|
2023-10-27 14:42:22 +10:00
|
|
|
python-version: 3.8
|
2020-10-24 16:59:55 +10:30
|
|
|
- name: Merge changes from 3.0 branch
|
|
|
|
run: |
|
2020-10-24 17:04:42 +10:30
|
|
|
git config user.name github-actions
|
|
|
|
git config user.email github-actions@github.com
|
2020-10-24 17:02:44 +10:30
|
|
|
git merge origin/3.0 -X theirs
|
2023-09-03 16:52:30 +07:00
|
|
|
- name: Install GNS3 server and dependencies
|
2020-10-23 23:03:50 +10:30
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2023-09-03 16:59:48 +07:00
|
|
|
python -m pip install .
|
2020-10-23 23:03:50 +10:30
|
|
|
- name: Generate the API documentation
|
|
|
|
run: |
|
|
|
|
cd scripts
|
|
|
|
python3 publish_api_documentation.py
|
|
|
|
- name: Publish the API documentation
|
|
|
|
run: |
|
|
|
|
git add docs
|
|
|
|
git status
|
|
|
|
git commit -m "Publish API documentation"
|
|
|
|
git push
|