From 67e037dcf30f6382b7daf8f54e919591baac6a40 Mon Sep 17 00:00:00 2001 From: lauralani Date: Sun, 26 Feb 2023 10:20:01 +0100 Subject: [PATCH] update CI --- .builds/deploy.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.builds/deploy.yml b/.builds/deploy.yml index fedeed6..fae6776 100644 --- a/.builds/deploy.yml +++ b/.builds/deploy.yml @@ -1,16 +1,17 @@ image: debian/bullseye packages: - nodejs - - libsecret-1-0 repositories: nodejs: https://deb.nodesource.com/node_18.x bullseye main 1655A0AB68576280 +environment: + NETLIFY_SITE_ID: 9e86e7a4-85e1-4039-a7df-f2d25cf8392c secrets: - 7db2a845-55f9-43da-8319-c9c796cbd8a5 tasks: - prepare: | - npm install -D @11ty/eleventy @azure/static-web-apps-cli - set +x && export SWA_CLI_DEPLOYMENT_TOKEN=`cat ~/deploy_token.txt` && set -x + npm install -D @11ty/eleventy netlify-cli - build: | npx @11ty/eleventy --input=./www-lauka-net --output=public - deploy: | - npx @azure/static-web-apps-cli deploy --no-use-keychain --deployment-token --app-location ./public --env Production + set +x && source ~/.buildsecrets && set -x + netlify deploy --site=$NETLIFY_SITE_ID --dir=public --prod