Push on 'release' PPA triggered by 'release' event

This commit is contained in:
Emmanuel Engelhart 2023-07-26 20:59:21 +02:00 committed by Kelson
parent e49abc1df1
commit 3fdbb5a990
1 changed files with 4 additions and 4 deletions

View File

@ -5,6 +5,8 @@ on:
push: push:
branches: branches:
- main - main
release:
types: [published]
jobs: jobs:
build-deb: build-deb:
@ -60,7 +62,7 @@ jobs:
- uses: legoktm/gh-action-dput@master - uses: legoktm/gh-action-dput@master
name: Upload dev package 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-') if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && startswith(matrix.distro, 'ubuntu-')
with: with:
gpg_key: ${{ secrets.LAUNCHPAD_GPG }} gpg_key: ${{ secrets.LAUNCHPAD_GPG }}
@ -69,10 +71,8 @@ jobs:
- uses: legoktm/gh-action-dput@master - uses: legoktm/gh-action-dput@master
name: Upload release package name: Upload release package
# Only upload on pushes to master or tag if: github.event_name == 'release' && startswith(matrix.distro, 'ubuntu-')
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && startswith(matrix.distro, 'ubuntu-')
with: with:
gpg_key: ${{ secrets.LAUNCHPAD_GPG }} gpg_key: ${{ secrets.LAUNCHPAD_GPG }}
repository: ppa:kiwixteam/release repository: ppa:kiwixteam/release
packages: output/*_source.changes packages: output/*_source.changes