Skip to content

Commit

Permalink
Update deploy.yml (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-egov committed Aug 14, 2023
1 parent c194cc9 commit 3509e9f
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Page
name: CI/CD

on:
push:
Expand All @@ -9,12 +9,37 @@ jobs:
deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- name: Install Dependencies
run: npm ci
- name: Checkout repository
uses: actions/checkout@v2
env:
CI: false

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
env:
CI: false

- name: Deploy
run: npm run deploy
- name: Install dependencies
run: npm install
env:
CI: false

permissions:
contents: write
- name: Deploy
run: |
git config --global user.name $user_name
git config --global user.email $user_email
git remote set-url origin https://${github_token}@github.com/${repository}
npm run deploy
env:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
repository: ${{ github.repository }}
CI: false

0 comments on commit 3509e9f

Please sign in to comment.