Skip to content

Instantly share code, notes, and snippets.

@jerdog
Created August 12, 2021 21:03
Show Gist options
  • Save jerdog/a0ad1adf24b0d247dd6c78b6fc0c83fb to your computer and use it in GitHub Desktop.
Save jerdog/a0ad1adf24b0d247dd6c78b6fc0c83fb to your computer and use it in GitHub Desktop.
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml'
version: 2.1
orbs:
node: circleci/node@4.1
jobs:
deploy:
docker:
- image: cimg/node:16.6.0
steps:
- checkout
- node/install-packages # netlify-cli added to the node modules of the site via `npm install netlify-cli -g`
- run:
name: "Setup custom env variables"
command: echo 'export NETLIFY_SITE_ID="$netlify_site_id"' >> $BASH_ENV
- run: npm run generate
- run: ./node_modules/netlify-cli/bin/run deploy --prod
workflows:
deploy-site:
jobs:
- deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment