mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Automatically upload binaries when tagged (#871)
* 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
This commit is contained in:
parent
1690241b9b
commit
c5253ecf2a
25
.github/workflows/tests.yml
vendored
25
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user