mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-14 16:09:09 +01:00
33 lines
801 B
YAML
33 lines
801 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
|
|
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
|
|
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
|