added surge preview to pull requests (untested!)

This commit is contained in:
Ell 2023-08-12 18:03:44 +02:00
parent d95295b5fa
commit 8bc465b4bc
2 changed files with 28 additions and 4 deletions

View file

@ -5,11 +5,23 @@ when:
- "Changelog.md"
- "InGameNews.md"
steps:
build-docs:
build:
image: mcr.microsoft.com/dotnet/sdk:7.0.305
commands:
- cd docs && dotnet tool restore && dotnet docfx
deploy-docs:
preview:
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:
image: debian:latest
when:
event: [push, manual]

View file

@ -1,11 +1,23 @@
when:
path: "web/**"
steps:
build-web:
build:
image: ruby:latest
commands:
- cd web && bundle && bundle exec jekyll build
deploy-web:
preview:
image: woodpeckerci/plugin-surge-preview
when:
event: pull_request
settings:
path: web/_site
surge_token:
from_secret: surge_token
forge_type: github
forge_url: https://github.com
forge_repo_token:
from_secret: github_token
deploy:
image: debian:latest
when:
- event: [push, manual]