From 42e779c611e9e7fb8496567590969693acdf1ea1 Mon Sep 17 00:00:00 2001 From: srcarter3 Date: Wed, 2 Sep 2020 11:28:33 -0600 Subject: [PATCH] Create sphinx_build_deploy.yml First pass at creating a gh-action for using sphinx to build webpages and deploy to gh-pages --- .github/workflows/sphinx_build_deploy.yml | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/sphinx_build_deploy.yml diff --git a/.github/workflows/sphinx_build_deploy.yml b/.github/workflows/sphinx_build_deploy.yml new file mode 100644 index 0000000..62d0986 --- /dev/null +++ b/.github/workflows/sphinx_build_deploy.yml @@ -0,0 +1,34 @@ +name: Publish Sphinx Built Webpages to Github Pages + +on: + push: + branches: + - master + paths: + - 'docs/**' + +jobs: + release: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + sudo apt install pandoc + python -m pip install --upgrade pip + pip install -r requirements.txxt + + - name: Build Sphinx documentation + run: | + make html + + - name: Deploy to gh-pages + uses: peaciris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site