ssp6904.ttnrtsite.io/.woodpecker.yml

25 lines
852 B
YAML

steps:
buildsite:
image: ruby
when:
- event: manual # workflow should run if you execute it manual
- event: push # workflow should run on each push ( = on each commit)
commands:
- chmod -R a+w .
- gem install bundler
- bundle install
- bundle exec jekyll build
pushsite:
when:
- event: manual # workflow should run if you execute it manual
- event: push # workflow should run on each push ( = on each commit)
image: ubuntu
secrets: gittoken
commands:
- apt update
- apt install -y git wget
- git remote set-url origin https://$GITTOKEN@git.ttnrtsite.me/ssp6904/pages.git
- wget https://git.ttnrtsite.me/TTNRT/actions/raw/branch/main/pages/run.sh
- chmod +x run.sh
- bash run.sh _site
- echo "Done!"