File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ name: 🚀 Deploy Stopwatch App to GitHub Pages
33on :
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
811jobs :
912 deploy :
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'
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
You can’t perform that action at this time.
0 commit comments