Skip to content

Commit

Permalink
Automatically upload binaries when tagged (ntop#871)
Browse files Browse the repository at this point in the history
* Add a workflow to automatically upload packages in to tagged releases

* Mark automatic release as a pre-release as that way its contents are actually visible

* Dont run the release job unless we are acting on a tag

* Minor rename to try and fit description into github graph view
  • Loading branch information
hamishcoleman authored Oct 24, 2021
1 parent 1690241 commit c5253ec
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -408,3 +408,28 @@ jobs:
with:
name: binaries
path: binaries

upload_release:
name: Upload Release Assets
if: startsWith(github.ref, 'refs/tags/')
needs:
- package_dpkg
- package_rpm
- binaries_windows
- binaries_macos
- binaries_linux_crosscompile
runs-on: ubuntu-latest

steps:
- name: Fetch all Artifacts
uses: actions/download-artifact@v2
with:
path: artifacts

- name: Upload Assets to Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
artifacts/packages-dpkg/*.deb
artifacts/packages-rpm/*.rpm

0 comments on commit c5253ec

Please sign in to comment.