From df0570764d523744f5d470679db29c67ba8ac9f9 Mon Sep 17 00:00:00 2001 From: Filipe Freire Date: Wed, 29 Jan 2025 14:20:21 +0000 Subject: [PATCH] fix: .deb and .snap upload on publish [no-ticket] (#8332) * fix: .deb and .snap upload on publish [no-ticket] * remove the arm64 snap that we are not producing --- .github/workflows/release-publish.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index c8a39e6f468..6407454adc8 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -224,16 +224,7 @@ jobs: env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN_FILE_NEW }} with: - snap: artifacts/Linux-X64-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}-x64.snap - release: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }} - - - name: Upload arm64 Linux to snapcraft (beta and stable only) - if: ${{ !contains(github.event.inputs.version, 'alpha') }} - uses: canonical/action-publish@v1 - env: - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN_FILE_NEW }} - with: - snap: artifacts/Linux-ARM64-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}-arm64.snap + snap: artifacts/Linux-X64-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}-amd64.snap release: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }} # TODO: also release for aarch64 Linux? @@ -254,7 +245,7 @@ jobs: entrypoint: /entrypoint.sh args: > release - --file artifacts/Linux-X64-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}-x64.deb + --file artifacts/Linux-X64-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}-amd64.deb --dist-name ubuntu --dist-version focal --package-type insomnia @@ -264,7 +255,7 @@ jobs: uses: Homebrew/actions/git-user-config@master with: username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'insomnia-infra' }} - + - name: Merge git branch into develop run: | remote_repo="https://${GITHUB_ACTOR}:${RELEASE_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"