steps: build: image: node:19 when: - event: push branch: [main, staging] commands: - npm install -D @11ty/eleventy - rm -rf public/ - npx @11ty/eleventy --input=. --output=public deploy-staging: image: node:alpine when: - event: push branch: staging secrets: - NETLIFY_AUTH_TOKEN - NETLIFY_SITE_ID commands: - npm install netlify-cli -g - netlify deploy --alias stage --dir ./public deploy-production: image: node:alpine when: - event: push branch: main secrets: - NETLIFY_AUTH_TOKEN - NETLIFY_SITE_ID commands: - npm install netlify-cli -g - netlify deploy --alias stage --dir ./public