1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-12 18:18:16 +00:00
gns3-server/.github/workflows/publish-api-documentation.yml

41 lines
926 B
YAML
Raw Normal View History

name: publish-api-documentation
on:
workflow_dispatch:
push:
tags:
- v3.*
jobs:
build:
runs-on: ubuntu-latest
steps:
2024-05-17 05:14:47 +00:00
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "gh-pages"
2024-05-17 05:14:47 +00:00
- uses: actions/setup-python@v5
with:
2023-10-27 04:42:22 +00:00
python-version: 3.8
- name: Merge changes from 3.0 branch
run: |
2020-10-24 06:34:42 +00:00
git config user.name github-actions
git config user.email github-actions@github.com
git merge origin/3.0 -X theirs
2023-09-03 09:52:30 +00:00
- name: Install GNS3 server and dependencies
run: |
python -m pip install --upgrade pip
2023-09-03 09:59:48 +00:00
python -m pip install .
- 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