-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 990 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on:
- push
jobs:
pypi:
strategy:
matrix:
python-version:
- "3.10"
runs-on: ubuntu-latest
steps:
- name: fetch all history and tags
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
- name: setup python
uses: actions/setup-python@v4
with:
cache: pip
cache-dependency-path: pyproject.toml
python-version: "${{ matrix.python-version}}"
- name: install hatch
run: |
python -m pip install hatch
- name: build html
run: |
hatch run task:html
- name: build pdf
run: |
hatch run task:pdf
touch mgf_strategic_plan/_build/html/.nojekyll
- name: Deploy main 🚀
uses: JamesIves/github-pages-deploy-action@v4
# if: ${{ github.ref_name == 'main' }}
with:
folder: mgf_strategic_plan/_build/html
single-commit: true