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:
Hamish Coleman 2021-10-24 21:39:41 +01:00 committed by GitHub
parent 1690241b9b
commit c5253ecf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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