Add action to deploy on Netlify

This commit is contained in:
Dimitri Lozeve 2020-10-27 22:25:20 +01:00
parent b056e06c77
commit 0f877311f7

View file

@ -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 }}