Publish APT packages for pre-tagged release drafts
This commit is contained in:
1 parent
ff6e7ccb50
commit
2515ffa921
2 files changed
+11
-2
No files matched your search
@@ -2,7 +2,8 @@ name: Publish release to APT
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
# Gitea 28.1 reports publication of a draft with an existing tag as edited.
|
||||
types: [published, edited]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
@@ -17,7 +18,10 @@ permissions:
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
if: gitea.repository == 'hippogrief/coulobre'
|
||||
if: >-
|
||||
gitea.repository == 'hippogrief/coulobre' &&
|
||||
(gitea.event_name == 'workflow_dispatch' ||
|
||||
(gitea.event.release.tag_name && gitea.event.release.draft == false))
|
||||
steps:
|
||||
- name: Check out publication script
|
||||
uses: https://github.com/actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||
|
||||
Reference in new issue
Block a user