aboutsummaryrefslogtreecommitdiff
path: root/.builds/doc.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.builds/doc.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.builds/doc.yml b/.builds/doc.yml
new file mode 100644
index 0000000..316a156
--- /dev/null
+++ b/.builds/doc.yml
@@ -0,0 +1,35 @@
+image: alpine/edge
+oauth: pages.sr.ht/PAGES:RW
+packages:
+ - cargo
+ - hut
+environment:
+ site: iced-dialog.pml68.dev
+tasks:
+ - build-docs: |
+ cd iced_dialog
+ cargo doc --verbose --no-deps
+ - copy-redirect: |
+ cd iced_dialog
+ cp docs/redirect.html target/doc/index.html
+ - package: |
+ cd iced_dialog
+ tar -C target/doc -cvz . > site.tar.gz
+ - upload: |
+ cd iced_dialog
+ if [ "$BUILD_SUBMITTER" = "git.sr.ht" ]
+ then
+ if [ "$GIT_REF" != "refs/heads/master" ]
+ then
+ complete-build
+ fi
+ if [ "$(git remote get-url origin)" != "https://git.sr.ht/~pml68/iced_dialog" ]
+ then
+ complete-build
+ fi
+ fi
+ if [ "$BUILD_REASON" = "patchset" ]
+ then
+ complete-build
+ fi
+ hut pages publish -d $site site.tar.gz