mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
move snap and deb publish to the end (#7599)
This commit is contained in:
parent
1a80b25ce5
commit
9aa512ee8a
64
.github/workflows/release-publish.yml
vendored
64
.github/workflows/release-publish.yml
vendored
@ -164,38 +164,6 @@ jobs:
|
||||
RELEASE_VERSION: ${{ env.INSO_VERSION }}
|
||||
RELEASE_CHANNEL: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }}
|
||||
|
||||
- name: Upload to snapcraft (beta and stable only)
|
||||
if: ${{ !contains(github.event.inputs.version, 'alpha') }}
|
||||
uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN_FILE_NEW }}
|
||||
with:
|
||||
snap: artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.snap
|
||||
release: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }}
|
||||
|
||||
- name: Upload .deb to pulp and/or cloudsmith (stable only)
|
||||
if: ${{ !contains(github.event.inputs.version, 'alpha') && !contains(github.event.inputs.version, 'beta') }}
|
||||
uses: docker://kong/release-script:latest
|
||||
env:
|
||||
PULP_USERNAME: ${{ secrets.PULP_USERNAME }}
|
||||
PULP_PASSWORD: ${{ secrets.PULP_PASSWORD }}
|
||||
PULP_HOST: ${{ secrets.PULP_HOST }}
|
||||
VERBOSE: ${{ runner.debug == '1' && '1' || '' }}
|
||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||
CLOUDSMITH_DRY_RUN: ''
|
||||
IGNORE_CLOUDSMITH_FAILURES: ${{ vars.IGNORE_CLOUDSMITH_FAILURES }}
|
||||
USE_CLOUDSMITH: ${{ vars.USE_CLOUDSMITH }}
|
||||
USE_PULP: ${{ vars.USE_PULP }}
|
||||
with:
|
||||
entrypoint: /entrypoint.sh
|
||||
args: >
|
||||
release
|
||||
--file artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.deb
|
||||
--dist-name ubuntu
|
||||
--dist-version focal
|
||||
--package-type insomnia
|
||||
${{ env.IS_PRERELEASE == 'true' && '--internal' || '--publish' }}
|
||||
|
||||
- name: Load the Inso CLI Docker Archive
|
||||
run: |
|
||||
docker load -i ./artifacts/ubuntu-latest-artifacts/insomnia-inso/artifacts/inso-docker-image.tar
|
||||
@ -284,6 +252,38 @@ jobs:
|
||||
env:
|
||||
RELEASE_GH_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }}
|
||||
|
||||
- name: Upload to snapcraft (beta and stable only)
|
||||
if: ${{ !contains(github.event.inputs.version, 'alpha') }}
|
||||
uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN_FILE_NEW }}
|
||||
with:
|
||||
snap: artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.snap
|
||||
release: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }}
|
||||
|
||||
- name: Upload .deb to pulp and/or cloudsmith (stable only)
|
||||
if: ${{ !contains(github.event.inputs.version, 'alpha') && !contains(github.event.inputs.version, 'beta') }}
|
||||
uses: docker://kong/release-script:latest
|
||||
env:
|
||||
PULP_USERNAME: ${{ secrets.PULP_USERNAME }}
|
||||
PULP_PASSWORD: ${{ secrets.PULP_PASSWORD }}
|
||||
PULP_HOST: ${{ secrets.PULP_HOST }}
|
||||
VERBOSE: ${{ runner.debug == '1' && '1' || '' }}
|
||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||
CLOUDSMITH_DRY_RUN: ''
|
||||
IGNORE_CLOUDSMITH_FAILURES: ${{ vars.IGNORE_CLOUDSMITH_FAILURES }}
|
||||
USE_CLOUDSMITH: ${{ vars.USE_CLOUDSMITH }}
|
||||
USE_PULP: ${{ vars.USE_PULP }}
|
||||
with:
|
||||
entrypoint: /entrypoint.sh
|
||||
args: >
|
||||
release
|
||||
--file artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.deb
|
||||
--dist-name ubuntu
|
||||
--dist-version focal
|
||||
--package-type insomnia
|
||||
${{ env.IS_PRERELEASE == 'true' && '--internal' || '--publish' }}
|
||||
|
||||
artifact-provenance:
|
||||
needs: [publish]
|
||||
permissions:
|
||||
|
Loading…
Reference in New Issue
Block a user