From 4c3963bf3f2104490362e05e953c27f098978513 Mon Sep 17 00:00:00 2001 From: brendangadd Date: Wed, 29 Apr 2020 10:15:11 -0400 Subject: [PATCH 1/2] chore(ci): Add publication pipeline --- .github/workflows/publish.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 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 000000000..99e9c1ec8 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,36 @@ +name: Publish + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest +# strategy: +# matrix: +# python-version: [3.5, 3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 mkdocs +# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi +# - name: Lint with flake8 +# run: | +# # stop the build if there are Python syntax errors or undefined names +# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics +# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide +# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Build and publish + run: | + mkdocs gh-deploy From e99ff01e65797bd811d7c7b355e0a4c259bdaa9d Mon Sep 17 00:00:00 2001 From: Blair Drummond <10801138+blairdrummond@users.noreply.github.com> Date: Wed, 29 Apr 2020 10:22:33 -0400 Subject: [PATCH 2/2] Add the theme --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 99e9c1ec8..57b655b2a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,7 +23,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 mkdocs + pip install flake8 mkdocs mkdocs-material # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi # - name: Lint with flake8 # run: |