From 558814163cc7560a0ee1e201fb5717368b026eff Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 1 Oct 2020 13:53:22 +1000 Subject: [PATCH] add gh-pages publish action for current master --- .github/workflows/publish.yml | 39 +++++++++++++++++++++++++++++++++++ .nojekyll | 0 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 .nojekyll diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..719e94b5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,39 @@ +name: Build & Publish +on: + push: + branches: + - master +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Anaconda + uses: goanpeca/setup-miniconda@v1 + with: + auto-update-conda: true + auto-activate-base: true + miniconda-version: 'latest' + python-version: 3.7 + environment-file: environment.yml + activate-environment: qe-lectures + - name: Install Build Dependencies + shell: bash -l {0} + run: | + pip install sphinx-book-theme myst-nb + - name: Display Conda Environment Versions + shell: bash -l {0} + run: conda list + - name: Display Pip Versions + shell: bash -l {0} + run: pip list + - name: Build HTML + shell: bash -l {0} + run: | + make html + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: _build/html/ \ No newline at end of file diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b