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:
21
.github/workflows/build_cleanup.yml
vendored
Normal file
21
.github/workflows/build_cleanup.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user