mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 19:28:35 +01:00
added surge preview to pull requests (untested!)
This commit is contained in:
parent
d95295b5fa
commit
8bc465b4bc
2 changed files with 28 additions and 4 deletions
|
@ -5,11 +5,23 @@ when:
|
||||||
- "Changelog.md"
|
- "Changelog.md"
|
||||||
- "InGameNews.md"
|
- "InGameNews.md"
|
||||||
steps:
|
steps:
|
||||||
build-docs:
|
build:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:7.0.305
|
image: mcr.microsoft.com/dotnet/sdk:7.0.305
|
||||||
commands:
|
commands:
|
||||||
- cd docs && dotnet tool restore && dotnet docfx
|
- 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
|
image: debian:latest
|
||||||
when:
|
when:
|
||||||
event: [push, manual]
|
event: [push, manual]
|
||||||
|
|
|
@ -1,11 +1,23 @@
|
||||||
when:
|
when:
|
||||||
path: "web/**"
|
path: "web/**"
|
||||||
steps:
|
steps:
|
||||||
build-web:
|
build:
|
||||||
image: ruby:latest
|
image: ruby:latest
|
||||||
commands:
|
commands:
|
||||||
- cd web && bundle && bundle exec jekyll build
|
- 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
|
image: debian:latest
|
||||||
when:
|
when:
|
||||||
- event: [push, manual]
|
- event: [push, manual]
|
||||||
|
|
Loading…
Reference in a new issue