File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 1- name : Deploy site to GitHub Pages
1+ name : Deploy to GitHub Pages
22
33on :
4- workflow_dispatch :
54 push :
65 branches : ["main"]
7- paths :
8- - " site/**"
9- - " data/papers.yaml"
10- - " data/citations.json"
6+ workflow_dispatch :
117
128permissions :
139 contents : read
@@ -22,21 +18,18 @@ jobs:
2218 deploy :
2319 environment :
2420 name : github-pages
21+ url : ${{ steps.deployment.outputs.page_url }}
2522 runs-on : ubuntu-latest
2623 steps :
27- - uses : actions/checkout@v4
28-
29- - name : Prepare site artifact
30- run : |
31- mkdir -p _site/data
32- cp -r site/* _site/
33- cp data/citations.json _site/data/citations.json
34- cp data/papers.yaml _site/data/papers.yaml
24+ - name : Checkout
25+ uses : actions/checkout@v4
3526
27+ # If your site is already built and committed in /site, upload it directly:
3628 - name : Upload artifact
3729 uses : actions/upload-pages-artifact@v3
3830 with :
39- path : " _site "
31+ path : site
4032
4133 - name : Deploy to GitHub Pages
34+ id : deployment
4235 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments