Skip to content

Commit 0c79a3a

Browse files
authored
add gh-pages publish action for current master (#59)
1 parent 3e8fe17 commit 0c79a3a

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/publish.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build & Publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Setup Anaconda
13+
uses: goanpeca/setup-miniconda@v1
14+
with:
15+
auto-update-conda: true
16+
auto-activate-base: true
17+
miniconda-version: 'latest'
18+
python-version: 3.7
19+
environment-file: environment.yml
20+
activate-environment: qe-lectures
21+
- name: Install Build Dependencies
22+
shell: bash -l {0}
23+
run: |
24+
pip install sphinx-book-theme myst-nb
25+
- name: Display Conda Environment Versions
26+
shell: bash -l {0}
27+
run: conda list
28+
- name: Display Pip Versions
29+
shell: bash -l {0}
30+
run: pip list
31+
- name: Build HTML
32+
shell: bash -l {0}
33+
run: |
34+
make html
35+
- name: Deploy
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: _build/html/

.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)