Skip to content

Commit

Permalink
workflow: working out on deploy automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Dec 20, 2023
1 parent fea7849 commit 88b1647
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,5 @@ jobs:
- name: Install dependencies and build
run: |
cd client
npm install
npm run build
cd ..
- name: Configure git
run: |
git config user.email "im.shubhamlal@gmail.com"
git config user.name "Shubham Lal"
- name: Commit and push
env:
GH_CPANEL: ${{ secrets.GH_CPANEL }}
run: |
git add client/dist
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Build for deployment"
git -c http.extraheader="AUTHORIZATION: bearer ${{ secrets.GH_CPANEL }}" push origin main
else
echo "No changes to commit"
fi
npm ci
npm run build

0 comments on commit 88b1647

Please sign in to comment.