Skip to content

Commit 548d4a1

Browse files
Update deploy.yml
1 parent ac8d0c0 commit 548d4a1

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
- name: Run tests
16-
run: chmod +x ./tests/run_tests.sh # This ensures the script has execute permissions
17-
continue-on-error: false # This ensures deployment is skipped if tests fail
18-
19-
- name: Build with Jekyll
20-
uses: actions/jekyll-build-pages@v1
21-
with:
22-
source: .
23-
destination: ./_site
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
run: chmod +x ./tests/run_tests.sh # Ensure the script has execute permissions
17+
continue-on-error: false # Skip deployment if tests fail
18+
19+
# Remove Jekyll build as it's not needed
20+
- name: Prepare files for GitHub Pages
21+
run: mkdir -p ./_site && cp -r * ./_site # Move all files to the _site directory
2622

2723
- name: Upload GitHub Pages artifact
2824
uses: actions/upload-pages-artifact@v3
@@ -32,7 +28,7 @@ jobs:
3228
deploy:
3329
runs-on: ubuntu-latest
3430
needs: build
35-
if: success() # This ensures deployment only happens if the build (including tests) succeeds
31+
if: success() # Only deploy if build (and tests) succeed
3632
permissions:
3733
pages: write
3834
id-token: write

0 commit comments

Comments
 (0)