Skip to content

Commit f2db0c9

Browse files
modified deployed script
1 parent 6e2b17c commit f2db0c9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,18 @@ jobs:
3939
- name: Check if www folder exists
4040
run: |
4141
ls -la www
42-
42+
43+
- name: Check if there are changes
44+
run: |
45+
git diff --exit-code || echo "There are changes to commit"
46+
4347
- name: Deploy to GitHub Pages
4448
env:
4549
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4650
run: |
47-
git config --global user.name "github-actions[bot]"
48-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
51+
git config --global user.name "sanjeetkumaritoutlook"
52+
git config --global user.email "sanjeetkumarit@outlook.com"
53+
git remote set-url origin https://github.com/sanjeetkumaritoutlook/sanjeetkumaritoutlook.github.io.git
4954
git add .
5055
git commit -m "Deploy to GitHub Pages"
5156
git push origin `git subtree split --prefix www main`:gh-pages --force

src/components/app-header/app-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class AppHeader {
1717
return (
1818
<div>
1919
<header>
20-
<h1>Sanjeet Stencil App</h1>
20+
<h1>Sanjeet Stencil Web App</h1>
2121
</header>
2222
{/* <div>
2323
{this.data.map(item => (

0 commit comments

Comments
 (0)