File tree Expand file tree Collapse file tree 2 files changed +33
-14
lines changed Expand file tree Collapse file tree 2 files changed +33
-14
lines changed Original file line number Diff line number Diff line change 1-
21name : Quarto Publish Development Version
32
43on :
76jobs :
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
Original file line number Diff line number Diff line change 66jobs :
77 build-deploy :
88 runs-on : ubuntu-latest
9- defaults :
10- run :
11- working-directory : ./doc
129 permissions :
1310 contents : write
1411 steps :
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
You can’t perform that action at this time.
0 commit comments