diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2022-04-10 16:28:43 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2022-04-10 16:29:19 +0700 |
commit | 3260841a50e25b35eff280dea2bae440840590a6 (patch) | |
tree | 000583505007c97aeb89505f6766ce3b70c2d810 | |
parent | c7ab51eaa5d8ea5ce31d993da9a569f9048cd88c (diff) | |
download | blog-3260841a50e25b35eff280dea2bae440840590a6.tar.gz |
Add build back to sourcehut
-rw-r--r-- | .archive.build.yml | 31 | ||||
-rw-r--r-- | .build.yml | 33 |
2 files changed, 33 insertions, 31 deletions
diff --git a/.archive.build.yml b/.archive.build.yml deleted file mode 100644 index 28e650d..0000000 --- a/.archive.build.yml +++ /dev/null @@ -1,31 +0,0 @@ -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 diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..cdcaf9a --- /dev/null +++ b/.build.yml @@ -0,0 +1,33 @@ +image: alpine/edge +oauth: pages.sr.ht/PAGES:RW +sources: + - https://git.sr.ht/~sircmpwn/openring + - https://git.envs.net/huyngo/haasdaiga + - https://git.envs.net/huyngo/ravna + - https://git.sr.ht/~huyngo/isanercent +packages: + - openring + - hugo + - mdbook +environment: + site: xrvs.net +tasks: +- build: | + for conlang in haasdaiga ravna isanercent; + do + cd $conlang + mdbook build + cd .. + done + cd $site + ./create-webring.sh + hugo --baseURL="https://xrvs.net" +- package: | + for conlang in haasdaiga ravna isanercent; + do + mv "$conlang/book" "$site/public/$conlang" + done + cd "$site/public" + tar -cvz . > ../../site.tar.gz +- upload: | + acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz |