Skip to content

Commit

Permalink
Build for all pushes and pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
xingrz committed Mar 23, 2024
1 parent 835b845 commit 14c4f18
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Auto deploy

on:
push:
branches: [ master ]
pull_request:

concurrency:
group: pages
Expand All @@ -24,8 +24,14 @@ jobs:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Build
run: npm ci && npm run build
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand All @@ -34,6 +40,7 @@ jobs:

deploy:
needs: build
if: ${{ github.ref == 'refs/heads/master' }}

permissions:
pages: write
Expand Down

0 comments on commit 14c4f18

Please sign in to comment.