We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 616c3a6 + d24a50a commit 78b1d41Copy full SHA for 78b1d41
1 file changed
.github/workflows/assets_artifact_build.yml
@@ -8,6 +8,9 @@ on:
8
branches:
9
- '*'
10
- "!l10n_*" # Dont test localization branches
11
+ tags:
12
+ - 'v*.*.*'
13
+ - 'v*.*.*-**'
14
pull_request:
15
16
@@ -17,6 +20,8 @@ jobs:
17
20
assets_artifact_build:
18
21
name: Build assets artifact
19
22
runs-on: ubuntu-22.04
23
+ permissions:
24
+ contents: write
25
26
env:
27
APP_ENV: prod
@@ -90,3 +95,10 @@ jobs:
90
95
with:
91
96
name: Full Part-DB including dependencies and built assets
92
97
path: /tmp/partdb_with_assets.zip
98
+
99
+ - name: Upload assets as release attachment
100
+ if: startsWith(github.ref, 'refs/tags/')
101
+ run: |
102
+ gh release upload "${{ github.ref_name }}" /tmp/partdb_assets.zip /tmp/partdb_with_assets.zip --clobber
103
+ env:
104
+ GH_TOKEN: ${{ github.token }}
0 commit comments