From 58c2a195f464f1917be0d54e9e523545f23449ba Mon Sep 17 00:00:00 2001 From: George Melikov Date: Wed, 20 May 2020 21:06:49 +0300 Subject: [PATCH 1/2] Check syntax on Pull Request Signed-off-by: George Melikov --- .github/workflows/pull_request.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..cb6fc34 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,13 @@ +name: Pull Request Docs Check + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ammaraskar/sphinx-action@master + with: + pre-build-command: "apt-get update -y && apt-get install -y python3-pip && pip install -r docs/requirements.txt" + docs-folder: "docs/" From 4a3ee227bdd5decc6353b62c74d68198cca16a06 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Wed, 20 May 2020 21:19:25 +0300 Subject: [PATCH 2/2] Add publish Action Signed-off-by: George Melikov --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..47c76b1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Publish Github Pages + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: ammaraskar/sphinx-action@master + with: + pre-build-command: "apt-get update -y && apt-get install -y python3-pip && pip install -r docs/requirements.txt" + docs-folder: "docs/" + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/_build/html