From ec4a001374b8da44f843093ad524ffafa11eb2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 21 May 2022 17:29:21 +0200 Subject: [PATCH] switch over to azure static webapps --- .drone.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index ebd1324..902ee12 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,15 +7,12 @@ steps: image: ubuntu commands: - apt-get update && apt-get install -y tidy - - tidy -imu webpagefiles/index.html || true + - tidy -imu webpagefiles/index.html -- name: Deploy to Cloudflare Pages - image: node +- name: Build and upload static web app environment: - CLOUDFLARE_ACCOUNT_ID: - from_secret: CLOUDFLARE_ACCOUNT_ID - CLOUDFLARE_API_TOKEN: - from_secret: CLOUDFLARE_API_TOKEN + APITOKEN: + from_secret: APITOKEN + image: mcr.microsoft.com/appsvc/staticappsclient:stable commands: - - npm install -g wrangler - - wrangler pages publish webpagefiles --commit-dirty=true + - /bin/staticsites/StaticSitesClient --apiToken $APITOKEN --outputLocation "webpagefiles" --app "/drone/src" --deploymentaction "upload" --appBuildCommand "echo 1"