Update build config

This commit is contained in:
Ngô Ngọc Đức Huy 2021-04-12 12:52:40 +07:00
parent 981e41a947
commit 82274ddd70
Signed by: huyngo
GPG Key ID: 904AF1C7CDF695C3
3 changed files with 6 additions and 10 deletions

View File

@ -1,23 +1,21 @@
image: debian/bullseye
oauth: pages.sr.ht/PAGES:RW
packages:
- ruby-full
- golang
- hugo
environment:
site: huyngo.srht.site
tasks:
- install: |
sudo gem install jekyll bundler --no-document
git clone https://git.sr.ht/~sircmpwn/openring
cd openring
go build -o openring
sudo cp openring /usr/local/bin/
- package: |
cd $site
bundle install
./create-webring.sh
bundle exec jekyll build
cd _site
hugo
cd public
tar -cvz . > ../../site.tar.gz
- upload: |
acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz

6
.gitignore vendored
View File

@ -1,5 +1,3 @@
.sass-cache/
.jekyll-cache/
.jekyll-metadata
_site/
public/
resources/
custom-webring.html

View File

@ -1,4 +1,4 @@
baseURL = "http://example.org/"
baseURL = "https://huyngo.srht.site/"
copyright = "CC-BY-SA 4.0"
defaultContentLanguage = "en"
languageCode = "en-us"