update build manifest to reflect transition to ox-hugo
authorAmin Bandali <amin@gnu.org>
Tue, 4 Sep 2018 22:21:30 +0000 (18:21 -0400)
committerAmin Bandali <amin@gnu.org>
Tue, 4 Sep 2018 22:21:30 +0000 (18:21 -0400)
.build.yml

index 1313ca7..26296a1 100644 (file)
@@ -1,17 +1,26 @@
 image: archlinux
 packages:
 image: archlinux
 packages:
-  - emacs
   - rsync
   - rsync
+  - wget
 sources:
   - https://git.sr.ht/~aminb/aminb.org
 environment:
   deploy: deploy@aminb.org
 sources:
   - https://git.sr.ht/~aminb/aminb.org
 environment:
   deploy: deploy@aminb.org
+  hugo_version: 0.48
 secrets:
   - 12deb555-3219-4d9d-b4c7-ffeda86ef5fe
 tasks:
 secrets:
   - 12deb555-3219-4d9d-b4c7-ffeda86ef5fe
 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
   - build: |
       cd aminb.org
-      emacs -Q --script publish.el --funcall=aminb/publish
+      ../hugo --minify
   - deploy: |
       cd aminb.org
       sshopts="-o StrictHostKeyChecking=no"
   - deploy: |
       cd aminb.org
       sshopts="-o StrictHostKeyChecking=no"