mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-23 19:58:35 +01:00
33 lines
830 B
YAML
33 lines
830 B
YAML
when:
|
|
path:
|
|
include:
|
|
- "docs/**"
|
|
- "Changelog.md"
|
|
- "InGameNews.md"
|
|
steps:
|
|
build-docs:
|
|
image: mcr.microsoft.com/dotnet/sdk:7.0.305
|
|
commands:
|
|
- cd docs && dotnet tool restore && dotnet docfx
|
|
preview-docs:
|
|
image: woodpeckerci/plugin-surge-preview:1.3.0
|
|
when:
|
|
event: [pull_request, pull_request_closed]
|
|
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
|
|
deploy-docs:
|
|
image: debian:latest
|
|
when:
|
|
event: [push, manual]
|
|
branch: main
|
|
commands:
|
|
- rm -rfv /var/www/tinylifedocs/*
|
|
- cp -rv docs/_site/. /var/www/tinylifedocs
|
|
volumes:
|
|
- /var/www/tinylifedocs:/var/www/tinylifedocs
|