File tree Expand file tree Collapse file tree 1 file changed +29
-6
lines changed Expand file tree Collapse file tree 1 file changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ permissions:
1313 pages : write
1414
1515jobs :
16- build-deploy :
16+ build :
1717 runs-on : ubuntu-latest
1818 steps :
1919 - name : Check out repository
5151 - name : Install Julia Dependencies
5252 uses : julia-actions/julia-buildpkg@v1
5353
54- - name : Render and Publish
55- uses : quarto-dev/quarto-actions/publish@v2
54+ - name : Render
55+ run : |
56+ quarto render --output-dir=public
57+ if [[ ! -f ./public/index.html ]]; then
58+ echo "No index.html found in public directory. copying the first HTML file."
59+ cp $(ls ./public/*.html | head -n 1) ./public/index.html
60+ fi
61+
62+ - name : Upload artifact
63+ uses : actions/upload-pages-artifact@v3
5664 with :
57- target : gh-pages
58- env :
59- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ path : ./public
66+
67+ # Deployment job
68+ deploy :
69+ permissions :
70+ pages : write
71+ id-token : write
72+ environment :
73+ name : github-pages
74+ url : ${{ steps.deployment.outputs.page_url }}
75+ runs-on : ubuntu-latest
76+ needs : build
77+ steps :
78+ - name : Deploy to GitHub Pages
79+ id : deployment
80+ uses : actions/deploy-pages@v4
81+ with :
82+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments