From 3fdbb5a990428f1d144cb7740c1fb37ac9b64e86 Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Wed, 26 Jul 2023 20:59:21 +0200 Subject: [PATCH] Push on 'release' PPA triggered by 'release' event --- .github/workflows/package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 5d4b90da..fdec75be 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -5,6 +5,8 @@ on: push: branches: - main + release: + types: [published] jobs: build-deb: @@ -60,7 +62,7 @@ jobs: - uses: legoktm/gh-action-dput@master name: Upload dev package - # Only upload on pushes to git default branch + # Only upload on pushes to main if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && startswith(matrix.distro, 'ubuntu-') with: gpg_key: ${{ secrets.LAUNCHPAD_GPG }} @@ -69,10 +71,8 @@ jobs: - uses: legoktm/gh-action-dput@master name: Upload release package - # Only upload on pushes to master or tag - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && startswith(matrix.distro, 'ubuntu-') + if: github.event_name == 'release' && startswith(matrix.distro, 'ubuntu-') with: gpg_key: ${{ secrets.LAUNCHPAD_GPG }} repository: ppa:kiwixteam/release packages: output/*_source.changes -