Skip to content

Commit 854b3db

Browse files
authored
Merge pull request #26 from odanado/try-netlify
netlify 用の GitHub Actions を追加
2 parents fdfd08e + fe317f3 commit 854b3db

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/netlify.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and Deploy to Netlify
2+
on:
3+
push:
4+
pull_request:
5+
types: [opened, synchronize]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Setup Perl
13+
uses: shogo82148/actions-setup-perl@v1
14+
with:
15+
perl-version: '5.30'
16+
17+
- name: Build
18+
run: make build
19+
20+
- name: Deploy to Netlify
21+
uses: nwtgck/actions-netlify@v1.0
22+
with:
23+
publish-dir: './public'
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
deploy-message: "Deploy from GitHub Actions"
26+
env:
27+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
28+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)