garden/.drone.yml
SouthFox c52527af9b
Some checks failed
continuous-integration/drone Build is failing
[cicd] change publsh command
2023-05-20 20:21:35 +08:00

30 lines
544 B
YAML

kind: pipeline
name: build
steps:
- name: fix link
image: bash
commands:
- bash fix.sh
- name: build
image: klakegg/hugo:alpine
commands:
- hugo
- name: render links
image: python:3.10.6
commands:
- pip install beautifulsoup4 lxml
- python soup.py
- name: deploy
image: node
environment:
CLOUDFLARE_API_TOKEN:
from_secret: api_token
CLOUDFLARE_ACCOUNT_ID:
from_secret: account_id
commands:
- npm install -g wrangler
- npx wrangler pages deploy --project-name garden --commit-dirty=true