mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Automate API documentation publishing.
This commit is contained in:
parent
3185ebaa3d
commit
2793f6f9d8
27
.github/workflows/publish_api_documentation.yml
vendored
Normal file
27
.github/workflows/publish_api_documentation.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: publish-api-documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ 3.0 ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: Generate the API documentation
|
||||
run: |
|
||||
python3 ./scripts/publish_api_documentation.py
|
||||
- name: Publish the API documentation
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git commit -m "Publish API documentation"
|
||||
git push
|
Loading…
Reference in New Issue
Block a user