feat: only publish pkgs when we're in staging branches (#556)

See https://github.com/ooni/probe/issues/1506#issuecomment-949664779
This commit is contained in:
Simone Basso 2021-10-22 16:13:44 +02:00 committed by GitHub
commit a9319142f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 4 deletions

View file

@ -1,9 +1,10 @@
# oohelperd builds oohelperd for Linux
# oohelperd builds and publishes oohelperd for Linux
name: oohelperd
on:
push:
branches:
- "release/**"
- "oohelperd-staging"
jobs:
build_amd64:
@ -31,6 +32,7 @@ jobs:
dpkg-buildpackage -us -uc -b
- name: upload package
if: github.ref == 'refs/heads/oohelperd-staging'
run: |
curl -fsSLO https://raw.githubusercontent.com/ooni/sysadmin/master/tools/debops-ci
chmod +x debops-ci