17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 17:27:30 +01:00

ci: translations of lang/ packaged with the builds; each push of a branch publishes its Windows and Linux builds as the rolling pre-release build-<branch>, downloadable without a GitHub account and removed along with the branch

This commit is contained in:
maj00r
2026-10-06 22:19:12 +02:00
parent c4a22eabd5
commit f5d328c3a5
2 changed files with 113 additions and 3 deletions

21
.github/workflows/build_cleanup.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Remove public build of a deleted branch
on:
delete:
permissions:
contents: write
jobs:
cleanup:
if: github.event.ref_type == 'branch'
runs-on: ubuntu-24.04
steps:
- name: Delete the rolling release of the branch
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
BRANCH: ${{ github.event.ref }}
run: |
slug="$(printf '%s' "$BRANCH" | tr '/ ' '--' | tr -cd '[:alnum:]._-')"
gh release delete "build-$slug" --yes --cleanup-tag || true