Skip to content

Commit beafbf9

Browse files
Create deploy.yml
Fixing the deployment issue
1 parent 7206f7c commit beafbf9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/deploy.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Change this if you're using a different branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Deploy to GitHub Pages
16+
uses: peaceiris/actions-gh-pages@v3
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
publish_dir: ./ # Adjust if your site files are in a different directory
20+
publish_branch: master # Change if you want to publish to a different branch

0 commit comments

Comments
 (0)