X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/ed891db307af229f6179c8613d7017c14a52a570..53497e5e406a5543f208c670ca7555951aab1a14:/.build.yml diff --git a/.build.yml b/.build.yml index 1313ca7..cf23eea 100644 --- a/.build.yml +++ b/.build.yml @@ -1,17 +1,26 @@ image: archlinux packages: - - emacs - rsync + - wget sources: - - https://git.sr.ht/~aminb/aminb.org + - https://git.sr.ht/~bandali/aminb.org environment: deploy: deploy@aminb.org + hugo_version: "0.50" secrets: - - 12deb555-3219-4d9d-b4c7-ffeda86ef5fe + - 6da5fd68-0594-4fc6-abe0-efe01ffe4b56 tasks: + - setup: | + wget "https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_Linux-64bit.tar.gz" + wget "https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_checksums.txt" + calculated_sha=$(sha256sum "hugo_extended_${hugo_version}_Linux-64bit.tar.gz") + expected_sha=$(grep "hugo_extended_${hugo_version}_Linux-64bit.tar.gz" "hugo_extended_${hugo_version}_checksums.txt") + printf "calculated: %s\n expected: %s" "$calculated_sha" "$expected_sha" + [ "$calculated_sha" = "$expected_sha" ] + tar xzf "hugo_extended_${hugo_version}_Linux-64bit.tar.gz" - build: | cd aminb.org - emacs -Q --script publish.el --funcall=aminb/publish + ../hugo --minify - deploy: | cd aminb.org sshopts="-o StrictHostKeyChecking=no"