Publish APT packages for pre-tagged release drafts
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 1m45s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Failing after 1m51s

This commit is contained in:
parkel committed 2026-12-03 15:23:52 +01:00
1 parent ff6e7ccb50
commit 2515ffa921
2 files changed
+11 -2

No files matched your search

+6 -2
View File
@@ -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