123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- variables:
- - &alpine_image 'docker.io/alpine:3.19'
- - path: &docs_path
- - 'doc/**'
- steps:
- docker-build-image:
- image: woodpeckerci/plugin-docker-buildx
- settings:
- dockerfile: Dockerfile
- repo: vnpower/pixivfe
- username:
- from_secret: DOCKER_USERNAME
- password:
- from_secret: DOCKER_PASSWORD
- auto_tag: true
- when:
- branch: [ v2 ]
- event: [ tag, release, manual ]
- generate-docs:
- image: woodpeckerci/plugin-mkdocs:latest
- settings:
- verbose: true
- pip_install_file: doc/requirements.txt
- when:
- branch: [ v2 ]
- path: *docs_path
- event: [ push, tag, release, manual ]
- deploy-docs-cloudflare:
- image: *alpine_image
- environment:
- CLOUDFLARE_ACCOUNT_ID:
- from_secret: CLOUDFLARE_ACCOUNT_ID
- CLOUDFLARE_API_TOKEN:
- from_secret: CLOUDFLARE_API_TOKEN
- commands:
- - apk add npm --repository https://dl-cdn.alpinelinux.org/alpine/edge/community/
- - npx wrangler pages deploy site --project-name=pixivfe-docs
- when:
- branch: [ v2 ]
- path: *docs_path
- event: [ push, tag, release, manual ]
|