Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir0x23 committed Nov 1, 2024
1 parent bd4ba42 commit 9be7ab6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,24 @@ jobs:
runs-on: windows-latest # Using Windows runner

steps:
- name: Checkout code
- name: Checkout main code
uses: actions/checkout@v2

- name: Checkout gh-pages branch
uses: actions/checkout@v2
with:
repository: th3cyb3rhub/TheCyberHUB
ref: gh-pages
path: gh-pages # Check out into a subdirectory

- name: Copy content from gh-pages to current directory
run: |
if (Test-Path "gh-pages") {
Copy-Item -Recurse -Force "gh-pages/*" "."
} else {
Write-Host "gh-pages directory does not exist."
}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
Expand Down

0 comments on commit 9be7ab6

Please sign in to comment.