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:
|
2024-01-03 11:47:09 +01:00
|
|
|
image: woodpeckerci/plugin-surge-preview:1.3.0
|
2023-08-12 18:03:44 +02:00
|
|
|
when:
|
2024-01-03 11:47:09 +01:00
|
|
|
event: [pull_request, pull_request_closed]
|
2023-08-12 18:03:44 +02:00
|
|
|
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
|