Skip to content

Commit 6fc15be

Browse files
stopwatch
1 parent 4b39875 commit 6fc15be

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: 🚀 Deploy Stopwatch App to GitHub Pages
33
on:
44
push:
55
branches:
6-
- main # or use 'master' if your repo uses that
6+
- main
7+
8+
permissions:
9+
contents: write # This is required for actions-gh-pages to push to gh-pages branch
710

811
jobs:
912
deploy:
@@ -13,7 +16,7 @@ jobs:
1316
- name: 📥 Checkout Code
1417
uses: actions/checkout@v3
1518

16-
- name: 🔧 Setup Node (Not required but useful for builds)
19+
- name: 🔧 Setup Node (Optional for builds)
1720
uses: actions/setup-node@v3
1821
with:
1922
node-version: '18'
@@ -22,5 +25,5 @@ jobs:
2225
uses: peaceiris/actions-gh-pages@v3
2326
with:
2427
github_token: ${{ secrets.GITHUB_TOKEN }}
25-
publish_dir: ./
26-
publish_branch: gh-pages
28+
publish_dir: ./ # change this to your build directory if it's not the root
29+
publish_branch: gh-pages

0 commit comments

Comments
 (0)