Skip to content

Commit

Permalink
fix: .deb and .snap upload on publish [no-ticket] (#8332)
Browse files Browse the repository at this point in the history
* fix: .deb and .snap upload on publish [no-ticket]

* remove the arm64 snap that we are not producing
  • Loading branch information
filfreire authored Jan 29, 2025
1 parent add6eb4 commit df05707
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit df05707

Please sign in to comment.