Skip to content

Commit 5108bbb

Browse files
trying uses key instead of run key
1 parent 7cd9e35 commit 5108bbb

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: npm run build
4545

4646
- name: Upload artifact for Pages
47-
uses: actions/upload-pages-artifact@v1
47+
uses: actions/upload-pages-artifact@v3
4848
with:
4949
path: ./www # Path to your build output directory
5050

@@ -57,18 +57,7 @@ jobs:
5757
git diff --exit-code || echo "There are changes to commit"
5858
5959
- name: Deploy to GitHub Pages
60+
uses: actions/deploy-pages@v4
6061
env:
6162
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
7463

0 commit comments

Comments
 (0)