~svbn/stefan.vanburen.xyz

a88f3e3c95699e90e8735659006dcb2d3005141d — Stefan VanBuren 1 year, 7 months ago e09f872
style: Adjust .build.yml tasks indentation
1 files changed, 15 insertions(+), 19 deletions(-)

M .build.yml
M .build.yml => .build.yml +15 -19
@@ 6,22 6,18 @@ oauth: pages.sr.ht/PAGES:RW
environment:
  site: stefan.vanburen.xyz
tasks:
- build: |
    cd $site
    hugo

- package: |
    cd $site
    tar -C public -cvz . > site.tar.gz

- upload: |
    cd $site

    # Only upload on the main branch.
    if [ "$(git rev-parse origin/main)" != "$(git rev-parse HEAD)" ]
    then
      echo "Not on main branch, not publishing!"
      exit 0
    fi

    hut pages publish -d $site site.tar.gz
  - build: |
      cd $site
      hugo
  - package: |
      cd $site
      tar -C public -cvz . > site.tar.gz
  - upload: |
      cd $site
      # Only upload on the main branch.
      if [ "$(git rev-parse origin/main)" != "$(git rev-parse HEAD)" ]
      then
        echo "Not on main branch, not publishing!"
        exit 0
      fi
      hut pages publish -d $site site.tar.gz