arch: null artifacts: - jacksonchen666.com/public.tar.gz environment: BUILD_SUBMITTER: git.sr.ht image: alpine/latest packages: - ruby-bundler - ruby-dev - nodejs - hut repositories: {} secrets: [] shell: false sources: - https://git.sr.ht/~jacksonchen666/jacksonchen666.com#0498d81de249191b00eb2cc9df91c01395be4077 tasks: - build: | cd jacksonchen666.com/ bundle config --local deployment true bundle config --local without js_runtime bundle install # slow because of jekyll-watch for some reason JEKYLL_ENV=production CI_COMMIT_SHA=$(git rev-parse) bundle exec jekyll build --destination public/ tar -czf public.tar.gz -C public/ . - publish: | [ "$BUILD_SUBMITTER" = "git.sr.ht" ] || complete-build # exclude non-pushes cd jacksonchen666.com/ hut pages publish -d jacksonchen666.com public.tar.gz hut pages publish -d jacksonchen666.srht.site public.tar.gz triggers: - action: email condition: failure to: Jackson Chen oauth: pages.sr.ht/PAGES:RW