Skip to content

Publisher Workflow

Enrico Spinielli edited this page Mar 10, 2020 · 1 revision

WikiPublisher Workflow

Automatic

The fact of pushing a tagged commit to master will trigger the publication of the website via TravisCI.

The logic for deciding when to publish is implemented by the prod:deploy task in Rakefile.

Publication via TravisCI

Manual

Build the site for production (website repo):

(master) $ JEKYLL_ENV=production bundle exec jekyll build --future --config _config.yml

Copy the generate site in the publication repo euctrl-pru.github:

(master/website) $ cd ../euctrl-pru.github.io
(master/euctrl-pru.github) $ git rm -rf * > /dev/null
(master/euctrl-pru.github) $ cp -r  ../website/_site/* .

Commit and push all:

(master/euctrl-pru.github) $ git add --all .
(master/euctrl-pru.github) $ git commit -m 'release x.y.x'
(master/euctrl-pru.github) $ git push --force --quiet origin master