Skip to content

Commit 73c864f

Browse files
committed
Add pages deployment steps in refresh_static.yml
1 parent 52b6fda commit 73c864f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/refresh_static.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,21 @@ jobs:
6161
git add .
6262
git commit -m 'Updating static site'
6363
git push origin main
64+
65+
- name: Setup Pages
66+
id: setup-pages
67+
if: steps.push-to-main.outcome == 'success'
68+
uses: actions/configure-pages@v5
69+
70+
- name: Upload artifact
71+
if: steps.setup-pages.outcome == 'success'
72+
id: upload
73+
uses: actions/upload-pages-artifact@v3
74+
with:
75+
# Upload contents of static folder
76+
path: "./static/"
77+
78+
- name: Deploy to GitHub Pages
79+
if: steps.upload.outcome == 'success'
80+
id: deploy
81+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)