mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-12-22 06:39:23 +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"
|
||||
- "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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue