control whether to run dput when manually dispatching debian workflow

This commit is contained in:
Sebastian Stenzel
2022-03-18 14:18:05 +01:00
parent b37886c98c
commit e2f872ba9b
+7 -1
View File
@@ -4,6 +4,12 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
dput:
description: 'Upload to PPA'
required: true
default: false
type: boolean
env:
JAVA_VERSION: 17
@@ -99,7 +105,7 @@ jobs:
cryptomator_*_amd64.deb
cryptomator_*.asc
- name: Run dput to beta repo
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') || github.event.inputs.dput
run: dput ppa:sebastian-stenzel/cryptomator-beta cryptomator_*_source.changes
- name: Publish Debian package on GitHub Releases
if: startsWith(github.ref, 'refs/tags/')