TinyLifeWeb/.woodpecker/docs.yml

34 lines
801 B
YAML
Raw Normal View History

2023-08-12 17:46:43 +02:00
when:
path:
include:
- "docs/**"
- "Changelog.md"
- "InGameNews.md"
2023-07-20 14:30:45 +02:00
steps:
2023-08-12 22:18:23 +02:00
build-docs:
2023-07-20 14:30:45 +02:00
image: mcr.microsoft.com/dotnet/sdk:7.0.305
commands:
- cd docs && dotnet tool restore && dotnet docfx
2023-08-12 22:18:23 +02:00
preview-docs:
image: woodpeckerci/plugin-surge-preview
when:
event: pull_request
settings:
path: docs/_site
surge_token:
from_secret: surge_token
forge_type: github
forge_url: https://github.com
forge_repo_token:
from_secret: github_token
2023-08-12 22:18:23 +02:00
deploy-docs:
2023-07-20 14:30:45 +02:00
image: debian:latest
when:
2023-07-20 14:39:29 +02:00
event: [push, manual]
branch: main
2023-07-20 14:30:45 +02:00
commands:
- rm -rfv /var/www/tinylifedocs/*
- cp -rv docs/_site/. /var/www/tinylifedocs
volumes:
- /var/www/tinylifedocs:/var/www/tinylifedocs