Release v3.0.0a4 #5
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: publish-api-documentation | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v3.* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: "gh-pages" | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.7 | |
- name: Merge changes from 3.0 branch | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git merge origin/3.0 -X theirs | |
- name: Install GNS3 server and dependencies | |
run: | | |
python -m pip install --upgrade pip | |
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 |