Skip to main content
Module

x/wcarbon/.build.yml

Access Website Carbon's API for checking carbon emissions for websites with Deno.
Latest
File
image: alpine/edgepackages: - denosecrets: - 0323bc6f-a046-4b96-8496-2bac6e7ee107 - 6a295705-4fb6-451c-990c-9a12b0aa0dc2environment: dir: wcarbontriggers: - action: email condition: failure to: tim@harek.notasks: - test: | cd $dir deno task check deno task test - check: | cd $dir if [ "$(git rev-parse origin/main)" != "$(git rev-parse HEAD)" ]; then \ complete-build; \ fi - new_release: | set +x export JSR_API=$(cat ~/jsr_timharek) cd $dir deno publish --allow-slow-types --token $JSR_API set -x - mirror: | cd $dir git remote add github git@github.com:timharek/wcarbon.git ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts git push github main if [ "$(git describe --exact-match --tags HEAD)" ]; then \ git push --tags github; \ fi