2020-11-07 13:36:32 +00:00
|
|
|
dist: focal
|
|
|
|
language: go
|
|
|
|
go:
|
|
|
|
- 1.13
|
2019-08-21 05:42:47 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get update
|
2020-11-07 13:36:32 +00:00
|
|
|
- sudo apt-get install git jq wget graphviz
|
2020-11-06 11:44:15 +00:00
|
|
|
- wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_RELEASE}/hugo_extended_${HUGO_RELEASE}_Linux-64bit.deb"
|
2019-09-11 15:47:32 +00:00
|
|
|
- sudo dpkg -i *.deb
|
2020-11-06 12:43:22 +00:00
|
|
|
- sudo gem install asciidoctor asciidoctor-diagram
|
2020-11-07 13:36:32 +00:00
|
|
|
- go version
|
2020-11-06 11:44:15 +00:00
|
|
|
|
2019-08-21 05:42:47 +00:00
|
|
|
script:
|
2020-11-07 13:36:32 +00:00
|
|
|
- git clone https://git.sr.ht/~sircmpwn/openring && cd openring && go build && cd ../
|
|
|
|
- chmod +x ./bin/openring-create && ./bin/openring-create
|
|
|
|
- hugo
|
2020-11-06 11:44:15 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PRODUCTION=true
|
|
|
|
- HUGO_RELEASE=0.76.0
|
|
|
|
|
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
|
|
|
|