create release on release (tm)

pull/1118/head
Willy 2023-02-03 19:35:29 +01:00
parent 51ec1b16a2
commit 8858a3efcd
No known key found for this signature in database
GPG Key ID: 02E60AE5D9208602
1 changed files with 18 additions and 5 deletions

View File

@ -177,7 +177,7 @@ jobs:
- name: Upload Compiled Statping Binary
uses: actions/upload-artifact@v1
with:
name: statping-${{ matrix.platform }}-${{ matrix.arch }}
name: binaries
path: ./build
# TODO refactor (and fix) tests
@ -446,10 +446,23 @@ jobs:
if: ${{ success() && needs.data.outputs.is_release == 'true' }}
needs: [ data, build, test-postman-sqlite, test-postman-mysql, test-postman-postgres, docker-build ]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: dummy operation
run: |
:
- uses: actions/download-artifact@v3
with:
name: binaries
path: binaries
- uses: actions/create-release@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: binaries/*
draft: true
generateReleaseNotes: true
omitBodyDuringUpdate: true
prerelease: ${{ needs.data.outputs.is_prerelease == 'true' && 'true' || ''}}
updateOnlyUnreleased: true
# TODO push docker image(s) and release artifacts
# TODO push docker image(s)
# TODO bring back dockerhub image