Created
August 12, 2021 21:03
-
-
Save jerdog/a0ad1adf24b0d247dd6c78b6fc0c83fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This config is equivalent to both the '.circleci/extended/orb-free.yml' and the base '.circleci/config.yml' | |
version: 2.1 | |
orbs: | |
node: circleci/[email protected] | |
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