Skip to content

Commit 1cff393

Browse files
authored
Update static.yml
1 parent d3c2af3 commit 1cff393

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/static.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Deploy static content to Pages
33

44
on:
5-
# Runs on pushes targeting the default branch
5+
# Runs on pushes targeting the specified branch
66
push:
77
branches: ["TestPage"]
88

@@ -31,13 +31,15 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34+
with:
35+
ref: TestPage # Ensure we checkout the TestPage branch
3436
- name: Setup Pages
3537
uses: actions/configure-pages@v5
3638
- name: Upload artifact
3739
uses: actions/upload-pages-artifact@v3
3840
with:
39-
# Upload entire repository
40-
path: '.'
41+
# Upload the index.html file from the TestPage branch
42+
path: 'index.html'
4143
- name: Deploy to GitHub Pages
4244
id: deployment
4345
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)