-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.17 KB
/
publish.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
39
40
41
42
on:
workflow_dispatch:
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
# version: "pre-release"
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
auto-update-conda: true
python-version: "3.10"
channels: conda-forge
allow-softlinks: true
channel-priority: flexible
show-channel-urls: true
- name: Install dependencies
run: |
conda install --yes -c plotly plotly numpy scipy scikit-learn pandas jupyter
- name: Render and Publish
run: |
git config --global user.email "[email protected]"
git config --global user.name "mgraffg"
cd quarto
quarto publish gh-pages . --no-browser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}