This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
healthcheck/.github/workflows/main.yml

37 lines
770 B
YAML
Raw Normal View History

name: CI/CD
on:
push:
branches:
- main
jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: |
corepack enable
yarn
yarn lint
deploy:
name: Deploy
needs: [static-analysis]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: |
corepack enable
yarn
npx netlify-cli deploy --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}