Skip to content

Commit 9be7ab6

Browse files
committed
Update build.yml
1 parent bd4ba42 commit 9be7ab6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,24 @@ jobs:
1313
runs-on: windows-latest # Using Windows runner
1414

1515
steps:
16-
- name: Checkout code
16+
- name: Checkout main code
1717
uses: actions/checkout@v2
1818

19+
- name: Checkout gh-pages branch
20+
uses: actions/checkout@v2
21+
with:
22+
repository: th3cyb3rhub/TheCyberHUB
23+
ref: gh-pages
24+
path: gh-pages # Check out into a subdirectory
25+
26+
- name: Copy content from gh-pages to current directory
27+
run: |
28+
if (Test-Path "gh-pages") {
29+
Copy-Item -Recurse -Force "gh-pages/*" "."
30+
} else {
31+
Write-Host "gh-pages directory does not exist."
32+
}
33+
1934
- name: Set up Node.js
2035
uses: actions/setup-node@v2
2136
with:

0 commit comments

Comments
 (0)