Skip to content

Commit 0f2c121

Browse files
committed
Update GitHub Actions workflow to include 'paper' directory for deployment and add PDF link to index.html
1 parent a6ff5c2 commit 0f2c121

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/deploy-page.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main, master]
66
paths:
77
- "page/**"
8+
- "paper/**"
89
workflow_dispatch:
910

1011
jobs:
@@ -17,6 +18,9 @@ jobs:
1718
- name: Checkout
1819
uses: actions/checkout@v4
1920

21+
- name: Copy paper to page
22+
run: cp -r paper page/
23+
2024
- name: Deploy to GitHub Pages
2125
uses: peaceiris/actions-gh-pages@v4
2226
with:

page/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,20 @@ <h1 class="title is-1 publication-title">
8888

8989
<div class="column has-text-centered">
9090
<div class="publication-links" style="gap: 16px; display: flex; flex-wrap: wrap; justify-content: center;">
91+
<!-- Paper PDF (opens in browser for direct reading) -->
92+
<span class="link-block">
93+
<a href="https://sjtu-deng-lab.github.io/LightningRL/paper/LightningRL.pdf" target="_blank" class="external-link button is-normal is-rounded btn-gradient">
94+
<span class="icon is-small">
95+
<i class="fas fa-file-pdf"></i>
96+
</span>
97+
<span class="is-flex is-flex-direction-column is-align-items-center has-text-centered"
98+
style="line-height:1.05; gap:2px;">
99+
<span class="lang-en">Paper</span>
100+
<span class="lang-zh">论文</span>
101+
<span>PDF</span>
102+
</span>
103+
</a>
104+
</span>
91105
<!-- arXiv -->
92106
<span class="link-block">
93107
<a href="#" class="external-link button is-normal is-rounded btn-gradient">

0 commit comments

Comments
 (0)