From 0f877311f784ec2276e0c4c1cb2d0fa5d190ab84 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Tue, 27 Oct 2020 22:25:20 +0100 Subject: [PATCH] Add action to deploy on Netlify --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d32981..eabb296 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,3 +18,10 @@ jobs: key: ${{ hashFiles('stack.yaml') }}-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('newblog.cabal') }} - run: stack build - run: stack exec site build + - uses: netlify/actions/cli@master + if: github.ref == 'refs/heads/master' + with: + args: deploy --dir=_site --prod + env: + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}