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
|
|
|
|
secrets: [ gittoken, gitemail ]
|
2024-06-01 21:03:58 -04:00
|
|
|
commands:
|
2024-07-25 15:15:01 -04:00
|
|
|
- apt update
|
|
|
|
- apt install -y git
|
|
|
|
- git config --global user.email "$GITEMAIL"
|
|
|
|
- git config --global user.name "ssp6904"
|
|
|
|
- git config --global --add --bool push.autoSetupRemote true
|
|
|
|
- ls _site
|
2024-06-01 21:03:58 -04:00
|
|
|
|