diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-06-13 11:25:36 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-06-13 11:25:36 +0700 |
commit | d18fe4b6cb889692110fe57ba0a91d3159e326d7 (patch) | |
tree | d52cb6268a7a798e8bfeed6680e734edebe42631 | |
parent | f5f00b800f4158aeef28f73407e2064b29113ac3 (diff) | |
download | blog-d18fe4b6cb889692110fe57ba0a91d3159e326d7.tar.gz |
Archive the build because it's no longer used
-rw-r--r-- | .archive.build.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.archive.build.yml b/.archive.build.yml new file mode 100644 index 0000000..28e650d --- /dev/null +++ b/.archive.build.yml @@ -0,0 +1,31 @@ +image: debian/bullseye +oauth: pages.sr.ht/PAGES:RW +sources: + - https://git.sr.ht/~sircmpwn/openring + - https://git.disroot.org/huyngo/conlang +packages: + - golang + - hugo +environment: + site: huyngo.srht.site +tasks: +- install: | + cd openring + go build -o openring + sudo cp openring /usr/local/bin/ +- embed: | + cp -r conlang/src $site/content/conlang + cd $site/content/conlang + mv index.md _index.md + sed "s/\//_/g" SUMMARY.md | sed "s/\._/.\//g" | sed "s/.md/\//g" | grep -v "Introduction" >> _index.md + rm SUMMARY.md + ../../preprocess.sh + find -type f | grep "sh$" | xargs rm +- package: | + cd $site + ./create-webring.sh + hugo --baseURL="https://huyngo.srht.site" + cd public + tar -cvz . > ../../site.tar.gz +- upload: | + acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz |