Skip to content

Commit a6782aa

Browse files
committed
ci: store artifacts when using workflow_dispatch
1 parent 909177f commit a6782aa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
tags: ${{ steps.meta.outputs.tags }}
9595

9696
- name: Make github release
97+
if: github.ref_type == 'tag'
9798
uses: "softprops/action-gh-release@v1"
9899
id: make-release
99100
with:
@@ -104,6 +105,18 @@ jobs:
104105
target/cortex*.zip
105106
target/cortex*.bom.xml
106107
108+
- name: Store artifacts
109+
if: github.ref_type != 'tag'
110+
uses: actions/upload-artifact@v3
111+
with:
112+
name: packages
113+
path: |
114+
target/cortex*.deb
115+
target/cortex*.rpm
116+
target/cortex*.zip
117+
target/cortex*.bom.xml
118+
retention-days: 5
119+
107120
notify:
108121
needs: [ build ]
109122
runs-on: [ ubuntu-latest ]

0 commit comments

Comments
 (0)