Build an Hugo website with Bitbucket Pipelines

I now use (bitbucket pipelines) to publish this website.

In order to use bitbucket pipelines, it was really easy. Just create a file bitbucket-pipelines.yml:

    - step:
          - wget
          - dpkg -i hugo*.deb
          - hugo -b "" -d public
          - rsync -avz --exclude "*.htaccess" --exclude ".well-known" --delete public/

And presto! Your website is automagically put up to date. And it’s fast! Around ~25 second for a full build.