From 2793f6f9d8a0b37f5d4dc9d10d6ee9655bd01b8b Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 23 Oct 2020 19:03:19 +1030 Subject: [PATCH] Automate API documentation publishing. --- .../workflows/publish_api_documentation.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish_api_documentation.yml diff --git a/.github/workflows/publish_api_documentation.yml b/.github/workflows/publish_api_documentation.yml new file mode 100644 index 00000000..ede768b7 --- /dev/null +++ b/.github/workflows/publish_api_documentation.yml @@ -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