Skip to content

Commit ffec20a

Browse files
committed
Updated deployment workflow
1 parent 2ddbdaa commit ffec20a

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Build & Deploy to GitHub Pages
33
on:
44
push:
55
branches: [main]
6-
pull_request:
7-
branches: [main]
86

97
permissions:
108
contents: read
@@ -36,13 +34,11 @@ jobs:
3634
run: npm run build
3735

3836
- name: Upload Pages artifact
39-
if: github.ref == 'refs/heads/main'
4037
uses: actions/upload-pages-artifact@v3
4138
with:
4239
path: docs
4340

4441
deploy:
45-
if: github.ref == 'refs/heads/main'
4642
needs: build
4743
runs-on: ubuntu-latest
4844
environment:

.github/workflows/pr-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: npm
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build site
24+
run: npm run build

0 commit comments

Comments
 (0)