~xigoi/rapidjs

2d56cdeb64952eaf5b806c1959142a223cf4e718 — Adam Bla┼żek 11 months ago 5f2fbba
Documentation uploading
1 files changed, 15 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +15 -0
@@ 0,0 1,15 @@
image: alpine/edge
oauth: pages.sr.ht/PAGES:RW
packages:
  - hut
  - nim
  - nimble
tasks:
  - test: |
      cd rapidjs
      nimble test -y
  - publish: |
      if test "$(git -C rapidjs rev-parse HEAD)" = "$(git -C rapidjs rev-parse master)"; then
        tar -cvzC rapidjs/docs . -f site.tar.gz
        hut pages publish -d xigoi.srht.site -s rapidjs site.tar.gz
      fi