2020-11-07 17:39:05 +00:00
|
|
|
language: nix
|
2019-08-21 05:42:47 +00:00
|
|
|
|
2020-11-07 17:39:05 +00:00
|
|
|
before_script:
|
|
|
|
- sudo mkdir -p /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf
|
2020-11-06 11:44:15 +00:00
|
|
|
|
2019-08-21 05:42:47 +00:00
|
|
|
script:
|
2020-11-12 04:42:58 +00:00
|
|
|
- nix-shell --pure ./shell.nix --run "make build-openring"
|
2020-11-07 17:39:05 +00:00
|
|
|
- nix-env -i hugo go asciidoctor
|
2020-11-07 13:36:32 +00:00
|
|
|
- hugo
|
2020-11-06 11:44:15 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PRODUCTION=true
|
|
|
|
|
2019-08-21 05:42:47 +00:00
|
|
|
deploy:
|
2019-09-11 15:47:32 +00:00
|
|
|
local_dir: "./public/"
|
2019-08-21 05:42:47 +00:00
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
2019-09-11 15:47:32 +00:00
|
|
|
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
|
2019-08-21 05:42:47 +00:00
|
|
|
target_branch: gh-pages
|
|
|
|
on:
|
|
|
|
branch: master
|
2019-09-11 15:47:32 +00:00
|
|
|
|