Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Oct 23, 2023
1 parent eaf93c5 commit 5e08a97
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: CI
on:
push:
branches:
- develop
workflow_dispatch:
permissions:
contents: write
- "**"
pull_request:
branches: [develop]
types: [opened, reopened, synchronize]

jobs:
build-and-deploy:
Expand All @@ -16,13 +16,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install and Deploy 🔧
- name: Install and Build 🔧
run: |
npm install
npx prettier --check .
npm run build
- name: Deploy 🚀
if: github.ref == 'refs/heads/develop'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build

0 comments on commit 5e08a97

Please sign in to comment.