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