Skip to content

Commit 0b38c43

Browse files
committed
Do not upload doc when not on master branch
1 parent 1bb72dd commit 0b38c43

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.builds/debian.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ tasks:
2424
cd nxt-python
2525
python3 setup.py install --user
2626
- upload: |
27-
acurl -f https://pages.sr.ht/publish/$site/nxt-python [email protected]
27+
cd nxt-python
28+
# Only on master branch.
29+
if [ "$(git rev-parse master)" = "$(git rev-parse HEAD)" ]; then \
30+
acurl -f https://pages.sr.ht/publish/$site/nxt-python -Fcontent=@../nxt-python.tar.gz; \
31+
fi

0 commit comments

Comments
 (0)