Skip to content

Commit cc62969

Browse files
committed
PRのプレビューをつくるようにした
1 parent 1e9dc64 commit cc62969

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/preview.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy PR previews
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- closed
10+
11+
concurrency: preview-${{ github.ref }}
12+
13+
jobs:
14+
deploy-preview:
15+
runs-on: ubuntu-20.04
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Install and Build
21+
run: |
22+
npm ci
23+
npm run build
24+
25+
- name: Deploy preview
26+
uses: rossjrw/pr-preview-action@v1
27+
with:
28+
source-dir: ./build/

0 commit comments

Comments
 (0)