Skip to content

Commit 29d43c0

Browse files
committed
Merge branch 'main' into s-add-rdd
2 parents 3a2ab4d + 46e04ba commit 29d43c0

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

.github/workflows/publish-dev.yml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Quarto Publish Development Version
32

43
on:
@@ -7,9 +6,6 @@ on:
76
jobs:
87
build-deploy:
98
runs-on: ubuntu-latest
10-
defaults:
11-
run:
12-
working-directory: ./doc
139
permissions:
1410
contents: write
1511
steps:
@@ -25,14 +21,40 @@ jobs:
2521
python-version: '3.12'
2622
cache: 'pip'
2723
- run: pip install jupyter
28-
- run: pip install -r requirements-doc.txt
24+
- run: pip install -r doc/requirements-doc.txt
2925

30-
- name: Render and Publish Development Version
31-
uses: quarto-dev/quarto-actions/publish@v2
26+
- name: Render Quarto Project with Development Profile
27+
uses: quarto-dev/quarto-actions/render@v2
3228
with:
3329
path: ./doc
34-
target: gh-pages
35-
render: "false"
30+
to: html
3631
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3832
QUARTO_PROFILE: dev
33+
34+
- name: Move rendered files to a temporary location
35+
run: mv ./doc/_site/dev /tmp/quarto-site
36+
37+
- name: Check out gh-pages branch
38+
uses: actions/checkout@v4
39+
with:
40+
ref: gh-pages
41+
fetch-depth: 0
42+
43+
- name: Remove existing dev folder if present
44+
run: |
45+
if [ -d "dev" ]; then
46+
rm -rf dev
47+
fi
48+
49+
- name: Copy rendered files to dev folder
50+
run: |
51+
mkdir -p dev
52+
cp -r /tmp/quarto-site/* dev/
53+
54+
- name: Commit and push changes
55+
run: |
56+
git config --global user.name "github-actions[bot]"
57+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
58+
git add dev/
59+
git commit -m "Deploy updated development version to gh-pages"
60+
git push origin gh-pages

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
jobs:
77
build-deploy:
88
runs-on: ubuntu-latest
9-
defaults:
10-
run:
11-
working-directory: ./doc
129
permissions:
1310
contents: write
1411
steps:
@@ -24,7 +21,7 @@ jobs:
2421
python-version: '3.12'
2522
cache: 'pip'
2623
- run: pip install jupyter
27-
- run: pip install -r requirements-doc.txt
24+
- run: pip install -r doc/requirements-doc.txt
2825

2926
- name: Render and Publish
3027
uses: quarto-dev/quarto-actions/publish@v2

0 commit comments

Comments
 (0)