aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-09-29 09:38:32 +0200
committerPolesznyák Márk <contact@pml68.dev>2025-09-29 09:38:32 +0200
commitafc2cdf03f0c988057595d0828e24e1b84b09059 (patch)
treeb8e595c311bd308aa57dbbfb686405800fd8e24b
parentfeat: add build manifests (diff)
downloadiced_dialog-afc2cdf03f0c988057595d0828e24e1b84b09059.tar.gz
ci(doc): refactor git master ref check for page upload
-rw-r--r--.builds/doc.yml18
1 files changed, 3 insertions, 15 deletions
diff --git a/.builds/doc.yml b/.builds/doc.yml
index 316a156..177244c 100644
--- a/.builds/doc.yml
+++ b/.builds/doc.yml
@@ -17,19 +17,7 @@ tasks:
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
+ [ "$BUILD_SUBMITTER" = "git.sr.ht" ] || complete-build
+ [ "$GIT_REF" = "refs/heads/master" ] || complete-build
+ [ "$(git remote get-url origin)" = "https://git.sr.ht/~pml68/iced_dialog" ] || complete-build
hut pages publish -d $site site.tar.gz