mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-09-11 14:55:36 +03:00
fix: pass platform and correctly release (#952)
This commit is contained in:
parent
e5de9c3096
commit
851b5f2659
11
.github/workflows/linux.yml
vendored
11
.github/workflows/linux.yml
vendored
@ -103,6 +103,7 @@ jobs:
|
||||
needs: release
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- amd64
|
||||
@ -114,6 +115,7 @@ jobs:
|
||||
- name: Check version
|
||||
run: ./stores/snapcraft/check_version.sh
|
||||
env:
|
||||
ARCHITECTURE: ${{ matrix.platform }}
|
||||
SNAP_STORE_LOGIN: ${{ secrets.SNAP_STORE_LOGIN }}
|
||||
|
||||
- uses: docker/setup-qemu-action@v1
|
||||
@ -126,9 +128,8 @@ jobs:
|
||||
id: build
|
||||
if: env.SHOULD_DEPLOY == 'yes'
|
||||
|
||||
- uses: snapcore/action-publish@v1
|
||||
with:
|
||||
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
|
||||
snap: ${{ steps.build.outputs.snap }}
|
||||
release: stable
|
||||
- name: Release snap
|
||||
run: ./stores/snapcraft/release.sh
|
||||
env:
|
||||
SNAP_STORE_LOGIN: ${{ secrets.SNAP_STORE_LOGIN }}
|
||||
if: env.SHOULD_DEPLOY == 'yes'
|
||||
|
@ -17,7 +17,6 @@ else
|
||||
|
||||
echo "$SNAP_STORE_LOGIN" | snapcraft login --with -
|
||||
|
||||
ARCHITECTURE=$(dpkg --print-architecture)
|
||||
echo "Architecture: ${ARCHITECTURE}"
|
||||
|
||||
SNAP_VERSION=$(snapcraft list-revisions codium | grep -F stable* | grep ${ARCHITECTURE} | tr -s ' ' | cut -d ' ' -f 4)
|
||||
|
11
stores/snapcraft/release.sh
Executable file
11
stores/snapcraft/release.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
CALLER_DIR=$( pwd )
|
||||
|
||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||
|
||||
snapcraft upload --release=stable *.snap
|
||||
|
||||
cd "${CALLER_DIR}"
|
Loading…
Reference in New Issue
Block a user