Skip to content

Commit 913fae1

Browse files
CopilotSteriva
andauthored
Add paper example and pages deployment workflow
Agent-Logs-Url: https://github.com/ERMETE-Lab/Papers-with-code/sessions/a48a1272-b2f3-4adf-bd1b-0cd5f8ae2b5a Co-authored-by: Steriva <63815224+Steriva@users.noreply.github.com>
1 parent 53becb1 commit 913fae1

4 files changed

Lines changed: 70 additions & 2 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy index to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v5
30+
31+
- name: Upload static site artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: .
35+
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ hosted in other repositories in the `ERMETE-Lab` organization.
1919
- `repository`
2020
- `repository_url`
2121
- `submodule_path`
22-
- optional `journal`, `year`, and `notes`
22+
- optional `authors`, `journal`, `year`, `doi`, `paper_url`, and `notes`
2323

2424
Until entries are added, the wrapper renders an empty-state message instead of
2525
an empty table.
26+
27+
## GitHub Pages
28+
29+
The repository includes a workflow that publishes the static site (`index.html`
30+
and `papers.json`) to GitHub Pages on pushes to `main`.

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,18 @@ <h1>ERMETE-Lab papers with code</h1>
125125
<tr>
126126
<td>
127127
<strong>${paper.title}</strong>
128+
${paper.authors ? `<div>${paper.authors}</div>` : ""}
128129
${paper.journal ? `<div>${paper.journal}</div>` : ""}
129130
${paper.year ? `<div>${paper.year}</div>` : ""}
130131
</td>
132+
<td>
133+
${
134+
paper.paper_url
135+
? `<a href="${paper.paper_url}">Read paper</a>`
136+
: ""
137+
}
138+
${paper.doi ? `<div><code>${paper.doi}</code></div>` : ""}
139+
</td>
131140
<td>
132141
<a href="${paper.repository_url}">${paper.repository}</a>
133142
</td>
@@ -144,6 +153,7 @@ <h1>ERMETE-Lab papers with code</h1>
144153
<thead>
145154
<tr>
146155
<th>Paper</th>
156+
<th>Publication</th>
147157
<th>Repository</th>
148158
<th>Submodule path</th>
149159
<th>Notes</th>

papers.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
{
2-
"papers": []
2+
"papers": [
3+
{
4+
"title": "Robust state estimation from partial out-core measurements with Shallow Recurrent Decoder for nuclear reactors",
5+
"authors": "Stefano Riva; Carolina Introini; Antonio Cammi; J. Nathan Kutz",
6+
"journal": "Progress in Nuclear Energy",
7+
"year": 2025,
8+
"volume": "189",
9+
"pages": "105928",
10+
"repository": "NuSHRED",
11+
"repository_url": "https://github.com/ERMETE-Lab/NuSHRED",
12+
"submodule_path": "repositories/NuSHRED",
13+
"doi": "10.1016/j.pnucene.2025.105928",
14+
"paper_url": "https://www.sciencedirect.com/science/article/pii/S0149197025003269",
15+
"notes": "State reconstruction from three out-of-core neutron flux measurements over 20 coupled field variables."
16+
}
17+
]
318
}

0 commit comments

Comments
 (0)