From caf314d3cafab8a421db75050249eab84e95972c Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 12 Jan 2020 20:59:03 +0100 Subject: [PATCH] builds.sr.ht deploy trigger --- .builds/pages.yml | 26 ++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 .builds/pages.yml diff --git a/.builds/pages.yml b/.builds/pages.yml new file mode 100644 index 0000000..ee64e4a --- /dev/null +++ b/.builds/pages.yml @@ -0,0 +1,26 @@ +image: archlinux +packages: + - python-poetry + - nodejs + - npm + - rsync +sources: + - https://git.sr.ht/~fmartingr/fmartingr.com +secrets: + - f577557b-ed7b-4ce4-a103-d9c8e692c09b + - 7902c1da-f243-4bb3-a397-dc1c98faa823 + - c82cd104-227b-4745-89ae-960b5f7c82ae +tasks: + # https://todo.sr.ht/~sircmpwn/builds.sr.ht/170 + - check-branch: | + cd fmartingr.com + if [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then \ + complete-build; \ + fi + - prepare: | + cd fmartingr.com + python -V + make setup + - deploy: | + cd fmartingr.com + poetry run make deploy diff --git a/README.md b/README.md index 55dffc3..c93356e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # fmartingr.com +[![Last deploy](https://builds.sr.ht/~fmartingr/fmartingr.com/pages.yml.svg)](https://builds.sr.ht/~fmartingr/fmartingr.com/pages.yml?) + Source code for my personal site hosted at [fmartingr.com](https://fmartingr.com)