diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml new file mode 100644 index 0000000..721c8da --- /dev/null +++ b/.woodpecker/docs.yml @@ -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 diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml deleted file mode 100644 index a587c76..0000000 --- a/.woodpecker/main.yml +++ /dev/null @@ -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 diff --git a/.woodpecker/web.yml b/.woodpecker/web.yml new file mode 100644 index 0000000..0644c13 --- /dev/null +++ b/.woodpecker/web.yml @@ -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