mirror of
https://github.com/nmattia/niv.git
synced 2024-11-08 08:26:02 +03:00
22 lines
561 B
YAML
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
|