Create netlify-deploy.yml
This commit is contained in:
parent
e76e8017b7
commit
94b9e2e4ee
25
.github/workflows/netlify-deploy.yml
vendored
Normal file
25
.github/workflows/netlify-deploy.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: "Deploy To Netlify"
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: "Deploy To Netlify"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: jsmrcaga/action-netlify-deploy@v2.0.0
|
||||||
|
with:
|
||||||
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||||
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
NETLIFY_DEPLOY_MESSAGE: "Prod deploy to v${{ github.ref }}"
|
||||||
|
NETLIFY_DEPLOY_TO_PROD: true
|
||||||
|
install_command: npm install
|
||||||
|
build command: npm run build
|
||||||
|
build_directory: "_site"
|
Loading…
Reference in a new issue