From fe317f33c6eaab9e463740e43005dad051183a3d Mon Sep 17 00:00:00 2001 From: odan Date: Tue, 24 Mar 2020 06:58:57 +0900 Subject: [PATCH] =?UTF-8?q?netlify=20=E7=94=A8=E3=81=AE=20GitHub=20Actions?= =?UTF-8?q?=20=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/netlify.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/netlify.yml diff --git a/.github/workflows/netlify.yml b/.github/workflows/netlify.yml new file mode 100644 index 00000000..b511799b --- /dev/null +++ b/.github/workflows/netlify.yml @@ -0,0 +1,28 @@ +name: Build and Deploy to Netlify +on: + push: + pull_request: + types: [opened, synchronize] +jobs: + build: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Setup Perl + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: '5.30' + + - name: Build + run: make build + + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v1.0 + with: + publish-dir: './public' + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deploy from GitHub Actions" + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} \ No newline at end of file