From c625d897bb1397ea07bb0f7b3cc767f4f0b9a8b5 Mon Sep 17 00:00:00 2001 From: Adrian Suciu Date: Fri, 26 Mar 2021 15:56:15 +0200 Subject: [PATCH] ci: push latest master flatpak build to continous prerelease Signed-off-by: Adrian Suciu --- .github/workflows/dockerimage.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index b10a0bfb65..70f0d00889 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -21,3 +21,12 @@ jobs: with: name: Scopy.flatpak path: ${{ github.workspace }}/Scopy.flatpak + - name: Upload master flatpak build to continous prerelease + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} + run: | + wget https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz + tar xvf ghr_v0.13.0_linux_amd64.tar.gz + ghr_v0.13.0_linux_amd64/ghr -u ${{ github.repository_owner }} -r scopy -name "Continuous build" -b "Latest succesful master build " -prerelease -debug -replace continous ${{ github.workspace }}/Scopy.flatpak + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +