mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 05:39:36 +00:00
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>
This commit is contained in:
parent
3480dd146e
commit
d24a50a696
1 changed files with 12 additions and 0 deletions
12
.github/workflows/assets_artifact_build.yml
vendored
12
.github/workflows/assets_artifact_build.yml
vendored
|
|
@ -8,6 +8,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
- "!l10n_*" # Dont test localization branches
|
- "!l10n_*" # Dont test localization branches
|
||||||
|
tags:
|
||||||
|
- 'v*.*.*'
|
||||||
|
- 'v*.*.*-**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
@ -17,6 +20,8 @@ jobs:
|
||||||
assets_artifact_build:
|
assets_artifact_build:
|
||||||
name: Build assets artifact
|
name: Build assets artifact
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
env:
|
env:
|
||||||
APP_ENV: prod
|
APP_ENV: prod
|
||||||
|
|
@ -90,3 +95,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: Full Part-DB including dependencies and built assets
|
name: Full Part-DB including dependencies and built assets
|
||||||
path: /tmp/partdb_with_assets.zip
|
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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue