From afc2cdf03f0c988057595d0828e24e1b84b09059 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Mon, 29 Sep 2025 09:38:32 +0200 Subject: ci(doc): refactor git master ref check for page upload --- .builds/doc.yml | 18 +++--------------- 1 file 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 -- cgit v1.2.3