From 354b533e89735672dc4f09df79e821bb18a6e69e Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 22 Nov 2022 23:09:08 +0800 Subject: [PATCH] Start to use Netlify for deployment --- .github/workflows/build.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc15e5e..16ab6fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: "Build demo" +name: "Build and deploy to Netlify" on: push: branches: @@ -17,3 +17,18 @@ jobs: with: branch: gh-pages folder: public + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v1.2 + with: + publish-dir: ./public + production-branch: master + production-deploy: ${{ github.ref_name == 'master' }} + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deploy from GitHub Actions" + enable-pull-request-comment: true + enable-commit-comment: true + enable-commit-status: true + overwrites-pull-request-comment: false + env: + NETLIFY_ACCESS_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}