2023-07-11 18:25:00 +00:00
|
|
|
name: "Deploy To Netlify"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
|
2023-07-11 18:39:35 +00:00
|
|
|
env:
|
|
|
|
BUILD_DRAFTS: false
|
|
|
|
|
2023-07-11 18:25:00 +00:00
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: "Deploy To Netlify"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2023-07-11 18:55:35 +00:00
|
|
|
- run: "git log --pretty=oneline"
|
2023-07-11 18:25:00 +00:00
|
|
|
- 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
|
2023-07-11 18:34:26 +00:00
|
|
|
build_command: npm run build
|
2023-07-11 18:25:00 +00:00
|
|
|
build_directory: "_site"
|