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:
13
13
pages : write
14
14
15
15
jobs :
16
- build-deploy :
16
+ build :
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : Check out repository
51
51
- name : Install Julia Dependencies
52
52
uses : julia-actions/julia-buildpkg@v1
53
53
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
56
64
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