ssp6904.ttnrtsite.io/.woodpecker.yml

25 lines
867 B
YAML
Raw Normal View History

2024-06-01 21:03:58 -04:00
steps:
buildsite:
image: ruby
2024-07-25 15:15:01 -04:00
when:
- event: manual # workflow should run if you execute it manual
- event: push # workflow should run on each push ( = on each commit)
2024-06-01 21:03:58 -04:00
commands:
- chmod -R a+w .
- gem install bundler
- bundle install
- bundle exec jekyll build
pushsite:
2024-07-25 15:15:01 -04:00
when:
- event: manual # workflow should run if you execute it manual
- event: push # workflow should run on each push ( = on each commit)
image: ubuntu
2024-07-25 16:09:24 -04:00
secrets: [ gittoken ]
2024-06-01 21:03:58 -04:00
commands:
2024-07-25 15:15:01 -04:00
- apt update
2024-07-25 15:54:33 -04:00
- apt install -y git wget
2024-07-25 16:15:21 -04:00
- git remote set-url origin https://$GITTOKEN@git.ttnrtsite.me/ssp6904/ssp6904.ttnrtsite.io
2024-07-25 15:57:19 -04:00
- wget https://git.ttnrtsite.me/TTNRT/actions/raw/branch/main/pages/run.sh
2024-07-25 15:54:33 -04:00
- chmod +x run.sh
- bash run.sh _site
- echo "Done!"