From d24a50a696abb1efa2061666480a8ad5f45de8fb Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 00:04:16 +0100 Subject: [PATCH] Auto-upload built assets as release attachments on version tag push (#1287) * Initial plan * Upload built assets as release attachments on version tag push Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com> --- .github/workflows/assets_artifact_build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/assets_artifact_build.yml b/.github/workflows/assets_artifact_build.yml index 2622ca33..7ee5e7fc 100644 --- a/.github/workflows/assets_artifact_build.yml +++ b/.github/workflows/assets_artifact_build.yml @@ -8,6 +8,9 @@ on: branches: - '*' - "!l10n_*" # Dont test localization branches + tags: + - 'v*.*.*' + - 'v*.*.*-**' pull_request: branches: - '*' @@ -17,6 +20,8 @@ jobs: assets_artifact_build: name: Build assets artifact runs-on: ubuntu-22.04 + permissions: + contents: write env: APP_ENV: prod @@ -90,3 +95,10 @@ jobs: with: name: Full Part-DB including dependencies and built assets path: /tmp/partdb_with_assets.zip + + - name: Upload assets as release attachment + if: startsWith(github.ref, 'refs/tags/') + run: | + gh release upload "${{ github.ref_name }}" /tmp/partdb_assets.zip /tmp/partdb_with_assets.zip --clobber + env: + GH_TOKEN: ${{ github.token }}