Skip to content

Commit 2c73cdc

Browse files
committed
Deploy site to GitHub Pages
1 parent d5ed29d commit 2c73cdc

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/pages.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
name: Deploy site to GitHub Pages
1+
name: Deploy to GitHub Pages
22

33
on:
4-
workflow_dispatch:
54
push:
65
branches: ["main"]
7-
paths:
8-
- "site/**"
9-
- "data/papers.yaml"
10-
- "data/citations.json"
6+
workflow_dispatch:
117

128
permissions:
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

0 commit comments

Comments
 (0)