Skip to content

Commit bec11c2

Browse files
committed
THE-MATH-GAME
1 parent 305b80c commit bec11c2

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Deploy static content to Pages
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches:
6+
- main
67
workflow_dispatch:
78

89
permissions:
@@ -23,12 +24,21 @@ jobs:
2324
steps:
2425
- name: Checkout
2526
uses: actions/checkout@v4
27+
2628
- name: Setup Pages
2729
uses: actions/configure-pages@v5
28-
- name: Upload project
30+
31+
- name: Stage files
32+
run: |
33+
mkdir -p ./_site
34+
cp -r "./Source Code"/* ./_site/
35+
36+
- name: Upload artifact
2937
uses: actions/upload-pages-artifact@v3
3038
with:
31-
path: './Source Code'
39+
# Point to the staged directory containing static files
40+
path: './_site'
41+
3242
- name: Deploy to GitHub Pages
3343
id: deployment
3444
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)