-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (48 loc) · 1.67 KB
/
quartodoc.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master]
name: quartodoc
jobs:
quartodoc:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Miniforge3
activate-environment: bvhar-dev
environment-file: python/requirements/environment-dev.yml
python-version: '3.11'
auto-activate-base: false
- name: Install
run: conda run -n bvhar-dev pip install -e . -v
working-directory: python
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Check quartodoc version
run: sed -i "s|QUARTODOC_VERSION|$(python -c 'import importlib.metadata; print(importlib.metadata.version("quartodoc"))')|" _variables.yml
working-directory: python/docs
- name: Build site
run: |
conda run -n bvhar-dev quartodoc build
conda run -n bvhar-dev quarto render .
working-directory: python/docs
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
token: ${{ secrets.YGEUNKIM_PAGE_PAT }}
repository-name: ygeunkim/ygeunkim.github.io
clean: false
branch: master
folder: python/docs/_site
target-folder: package/bvhar/python