File tree 1 file changed +2
-13
lines changed 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 44
44
run : npm run build
45
45
46
46
- name : Upload artifact for Pages
47
- uses : actions/upload-pages-artifact@v1
47
+ uses : actions/upload-pages-artifact@v3
48
48
with :
49
49
path : ./www # Path to your build output directory
50
50
57
57
git diff --exit-code || echo "There are changes to commit"
58
58
59
59
- name : Deploy to GitHub Pages
60
+ uses : actions/deploy-pages@v4
60
61
env :
61
62
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
- run : |
63
- git config --global user.name "sanjeetkumaritoutlook"
64
- git config --global user.email "sanjeetkumarit@outlook.com"
65
- git remote set-url origin https://github.com/sanjeetkumaritoutlook/sanjeetkumaritoutlook.github.io.git
66
- # Check for changes
67
- if [ -n "$(git status --porcelain)" ]; then
68
- git add .
69
- git commit -m "Deploy to GitHub Pages"
70
- git push origin `git subtree split --prefix www main`:gh-pages --force
71
- else
72
- echo "No changes to commit, skipping deployment"
73
- fi
74
63
You can’t perform that action at this time.
0 commit comments