From 0d7bc0dce91d27972ea5c5e923254c9879efebcf Mon Sep 17 00:00:00 2001 From: Kyle Bloom Date: Wed, 8 Jun 2022 13:59:50 +0100 Subject: [PATCH] Change flatpak name (#7187) * Change flatpak name * Update changelog * Remove PR build * Remove SYNERGY_DEB_VERSION creation --- .github/workflows/job-build-flatpak.yaml | 16 +++++++--------- ChangeLog | 1 + 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/job-build-flatpak.yaml b/.github/workflows/job-build-flatpak.yaml index dae5d9ed90..fdf487506b 100644 --- a/.github/workflows/job-build-flatpak.yaml +++ b/.github/workflows/job-build-flatpak.yaml @@ -54,7 +54,7 @@ jobs: rm -rf version-info SYNERGY_VERSION="$SYNERGY_VERSION_MAJOR.$SYNERGY_VERSION_MINOR.$SYNERGY_VERSION_PATCH" SYNERGY_REVISION=$(git rev-parse --short=8 HEAD) - SYNERGY_DEB_VERSION="${SYNERGY_VERSION}.${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}" + SYNERGY_FLATPAK_NAME="${{ matrix.name }}_${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}" echo "::set-output name=SYNERGY_VERSION_MAJOR::${SYNERGY_VERSION_MAJOR}" echo "::set-output name=SYNERGY_VERSION_MINOR::${SYNERGY_VERSION_MINOR}" echo "::set-output name=SYNERGY_VERSION_PATCH::${SYNERGY_VERSION_PATCH}" @@ -62,10 +62,8 @@ jobs: echo "::set-output name=SYNERGY_VERSION_BUILD::${SYNERGY_VERSION_BUILD}" echo "::set-output name=SYNERGY_VERSION::${SYNERGY_VERSION}" echo "::set-output name=SYNERGY_REVISION::${SYNERGY_REVISION}" - echo "::set-output name=SYNERGY_DEB_VERSION::${SYNERGY_DEB_VERSION}" + echo "::set-output name=SYNERGY_FLATPAK_NAME::${SYNERGY_FLATPAK_NAME}" echo "::set-output name=SYNERGY_REMOTE_FOLDER::${{ matrix.remote_folder }}/${SYNERGY_VERSION}/${SYNERGY_VERSION_STAGE}/b${SYNERGY_VERSION_BUILD}-${SYNERGY_REVISION}" - echo "::set-output name=SYNERGY_PACKAGE_NAME::${{ matrix.name }}" - - name: Install flatpak run: | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo @@ -77,21 +75,21 @@ jobs: cd flatpak flatpak-builder build ${{ matrix.name }}.yml --disable-cache --force-clean flatpak build-export export build - flatpak build-bundle export ${{ matrix.name }}.flatpak com.symless.Synergy master --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo + flatpak build-bundle export ${{ steps.version.outputs.SYNERGY_FLATPAK_NAME }}.flatpak com.symless.Synergy master --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo - name: Upload Artifact - uses: actions/upload-artifact@v2 if: "github.event_name == 'pull_request'" + uses: actions/upload-artifact@v2 with: - name: Bundle - path: flatpak/${{ matrix.name }}.flatpak + name: ${{ steps.version.outputs.SYNERGY_FLATPAK_NAME }} + path: flatpak/${{ steps.version.outputs.SYNERGY_FLATPAK_NAME }}.flatpak retention-days: 1 - name: Send package to Binary Storage if: "github.event_name == 'release'" uses: garygrossgarten/github-action-scp@v0.7.3 with: - local: flatpak/${{ matrix.name }}.flatpak + local: flatpak/${{ steps.version.outputs.SYNERGY_FLATPAK_NAME }}.flatpak remote: ${{ secrets.BINARIES_SSH_DIR }}/${{ steps.version.outputs.SYNERGY_REMOTE_FOLDER }}/${{ matrix.name }}.flatpak host: ${{ secrets.BINARIES_SSH_HOST }} username: ${{ secrets.BINARIES_SSH_USER }} diff --git a/ChangeLog b/ChangeLog index 7d2b1d583a..20e8b252b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -34,6 +34,7 @@ Github Actions: - #7167 Use changelog when creating deb files - #7169 Remove temporary directory when building debs - #7174 Show all workflows for Raspberry Pi +- #7187 Rename flatpak to match other builds 1.14.3 ======