19 lines
372 B
YAML
19 lines
372 B
YAML
when:
|
|
- event: push
|
|
branch: ${CI_DEFAULT_REPO}
|
|
- event: cron
|
|
cron: daily
|
|
- event: manual
|
|
|
|
steps:
|
|
- name: generate
|
|
image: rust
|
|
commands:
|
|
- cargo run
|
|
- name: deploy
|
|
image: node:alpine
|
|
commands:
|
|
- npx wrangler pages deploy ./dist --project-name mininews
|
|
environment:
|
|
CLOUDFLARE_API_TOKEN:
|
|
from_secret: cf_token
|