switch over to azure static webapps
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
5d5499526c
commit
ec4a001374
15
.drone.yml
15
.drone.yml
@ -7,15 +7,12 @@ steps:
|
|||||||
image: ubuntu
|
image: ubuntu
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y tidy
|
- apt-get update && apt-get install -y tidy
|
||||||
- tidy -imu webpagefiles/index.html || true
|
- tidy -imu webpagefiles/index.html
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Pages
|
- name: Build and upload static web app
|
||||||
image: node
|
|
||||||
environment:
|
environment:
|
||||||
CLOUDFLARE_ACCOUNT_ID:
|
APITOKEN:
|
||||||
from_secret: CLOUDFLARE_ACCOUNT_ID
|
from_secret: APITOKEN
|
||||||
CLOUDFLARE_API_TOKEN:
|
image: mcr.microsoft.com/appsvc/staticappsclient:stable
|
||||||
from_secret: CLOUDFLARE_API_TOKEN
|
|
||||||
commands:
|
commands:
|
||||||
- npm install -g wrangler
|
- /bin/staticsites/StaticSitesClient --apiToken $APITOKEN --outputLocation "webpagefiles" --app "/drone/src" --deploymentaction "upload" --appBuildCommand "echo 1"
|
||||||
- wrangler pages publish webpagefiles --commit-dirty=true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user