Skip to content

Norway 2024 day 3

Norway 2024 day 3 #74

name: Continuous Deployment
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
BuildAndDeploy:
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: 🔧 Install dependencies
run: yarn --immutable
- name: ✅ Dedupe dependencies
run: yarn dedupe -c
- name: 🚨 Lint source
run: yarn lint
- name: 🧼 Clean build artifacts
run: yarn clean
- name: 🏗️ Build
run: yarn build
- name: 🚀 Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist