Add action to deploy on Netlify
This commit is contained in:
parent
b056e06c77
commit
0f877311f7
1 changed files with 7 additions and 0 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue