split up workflows

This commit is contained in:
Ell 2023-07-20 14:30:45 +02:00
parent 48e6762c53
commit ccdccbe420
3 changed files with 30 additions and 29 deletions

15
.woodpecker/docs.yml Normal file
View file

@ -0,0 +1,15 @@
steps:
build-docs:
image: mcr.microsoft.com/dotnet/sdk:7.0.305
commands:
- cd docs && dotnet tool restore && dotnet docfx
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

View file

@ -1,29 +0,0 @@
steps:
build-web:
image: ruby:latest
commands:
- cd web && bundle && bundle exec jekyll build
build-docs:
image: mcr.microsoft.com/dotnet/sdk:7.0.305
commands:
- cd docs && dotnet tool restore && dotnet docfx
deploy-web:
image: debian:latest
when:
- event: [push, manual]
branch: main
commands:
- rm -rfv /var/www/tinylifegame/*
- cp -rv web/_site/. /var/www/tinylifegame
volumes:
- /var/www/tinylifegame:/var/www/tinylifegame
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

15
.woodpecker/web.yml Normal file
View file

@ -0,0 +1,15 @@
steps:
build-web:
image: ruby:latest
commands:
- cd web && bundle && bundle exec jekyll build
deploy-web:
image: debian:latest
when:
- event: [push, manual]
branch: main
commands:
- rm -rfv /var/www/tinylifegame/*
- cp -rv web/_site/. /var/www/tinylifegame
volumes:
- /var/www/tinylifegame:/var/www/tinylifegame