Skip to content

.github/workflows/deploy-site.yml #4

.github/workflows/deploy-site.yml

.github/workflows/deploy-site.yml #4

Workflow file for this run

on:
workflow_dispatch:
jobs:
deploy_site:
name: Deploy Site
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install Dependencies
run: npm install
- name: Minify
run: npm run minify-site
- name: Publish on Netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=site --prod
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}