garden/.drone.yml
SouthFox 2a4847427d
All checks were successful
continuous-integration/drone Build is passing
[fix] missing directory
2023-05-20 20:36:51 +08:00

30 lines
551 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 public --project-name garden --commit-dirty=true