Skip to content

deploy to Netlify from GH Actions so we avoid deploys with code that … #2

deploy to Netlify from GH Actions so we avoid deploys with code that …

deploy to Netlify from GH Actions so we avoid deploys with code that … #2

Workflow file for this run

name: Check format, code style and types & deploy to Netlify
on:
push:
branches:
- main
jobs:
# check:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repo
# uses: actions/checkout@v3
# # Needs to be enabled in separate step for now, see https://github.com/actions/setup-node/issues/480
# - name: Enable Corepack for yarn
# run: corepack enable
# - name: Use Node 18
# uses: actions/setup-node@v3
# with:
# node-version: 18.x
# cache: "yarn"
# - name: Install dependencies
# run: yarn --frozen-lockfile
# - name: Check format
# run: yarn check:format
# - name: Check code style
# run: yarn check:code-style
# - name: Check types
# run: yarn check:types
deploy:
runs-on: ubuntu-latest
# needs: check
steps:
- name: Install Netlify CLI
run: npm i -g netlify-cli
- name: Deploy to Netlify
run: netlify deploy --build --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}