Skip to content

Commit

Permalink
ci: store artifacts when using workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
vdebergue committed Sep 21, 2023
1 parent 909177f commit a6782aa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}

- name: Make github release
if: github.ref_type == 'tag'
uses: "softprops/action-gh-release@v1"
id: make-release
with:
Expand All @@ -104,6 +105,18 @@ jobs:
target/cortex*.zip
target/cortex*.bom.xml
- name: Store artifacts
if: github.ref_type != 'tag'
uses: actions/upload-artifact@v3
with:
name: packages
path: |
target/cortex*.deb
target/cortex*.rpm
target/cortex*.zip
target/cortex*.bom.xml
retention-days: 5

notify:
needs: [ build ]
runs-on: [ ubuntu-latest ]
Expand Down

0 comments on commit a6782aa

Please sign in to comment.