~sircmpwn/harelang.org

f6ad4ce8f7abe1fb79d883e89c47747a61c0d020 — Drew DeVault a month ago 436f545
.build.yml: migrate to SourceHut pages

Not going to work until DNS propagates though
1 files changed, 6 insertions(+), 15 deletions(-)

M .build.yml
M .build.yml => .build.yml +6 -15
@@ 1,24 1,15 @@
image: alpine/edge
packages:
  - rsync
  - hugo
  - hut
oauth: pages.sr.ht/PAGES:RW
sources:
  - https://git.sr.ht/~sircmpwn/harelang.org
secrets:
  - 160a72cf-34d6-47b7-928b-c13b42b4d4f6
tasks:
- hugo: |
    curl -O https://mirror.drewdevault.com/hugo
    chmod +x hugo
    sudo mv hugo /usr/local/bin/
tasks:
- build: |
    cd harelang.org
    /usr/local/bin/hugo
    hugo
- upload: |
    if [ $BUILD_SUBMITTER != "git.sr.ht" ]
    then
        echo "Skipping upload for non-git.sr.ht build"
        exit
    fi
    cd harelang.org
    echo "StrictHostKeyChecking=no" >> ~/.ssh/config
    rsync -rP public/ deploy@drewdevault.com:/var/www/harelang.org/
    hut pages publish -d harelang.org ./public/