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 7fd4f36 commit cd382fb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Auto deploy

on:
push:
branches: [ master ]
pull_request:

concurrency:
group: pages
Expand All @@ -24,8 +22,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 +38,7 @@ jobs:

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

permissions:
pages: write
Expand Down

0 comments on commit cd382fb

Please sign in to comment.