From 49da831714d432a2835d7dbae2d073bad0755780 Mon Sep 17 00:00:00 2001 From: lauralani Date: Sat, 25 Feb 2023 19:58:56 +0100 Subject: [PATCH] add sourcehut ci --- .builds/deploy.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .builds/deploy.yml diff --git a/.builds/deploy.yml b/.builds/deploy.yml new file mode 100644 index 0000000..ef41eb1 --- /dev/null +++ b/.builds/deploy.yml @@ -0,0 +1,15 @@ +image: alpine +packages: + - nodejs + - npm +secrets: + - 46f739e5-4538-45dd-a79f-bf173b7a2ed9 +tasks: + - prepare: | + npm install -D @11ty/eleventy + npm install -D @azure/static-web-apps-cli + set +x && export SWA_CLI_DEPLOYMENT_TOKEN=`cat ~/deploy_token.txt` && set -x + - build: | + npx @11ty/eleventy --input=. --output=public + - deploy: | + npx @azure/static-web-apps-cli deploy ./public --env Production