1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-08 08:26:02 +03:00
niv/.github/workflows/netlify.yml
2019-12-08 17:18:59 +01:00

22 lines
561 B
YAML

name: "netlify deploy"
on:
push:
branches:
- master
jobs:
netlify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: cachix/install-nix-action@v6
- name: "deploy to netlify"
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: |
nix-env -f ./nix -iA nodejs-10_x
npm install netlify-cli
./node_modules/netlify-cli/bin/run deploy \
--dir=./site \
--message="$GITHUB_SHA" --prod