ci: Rewrite promote_snapcraft job
This commit is contained in:
parent
577864df24
commit
1ee4e2b7de
1 changed files with 3 additions and 6 deletions
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
|
|
@ -71,18 +71,15 @@ jobs:
|
||||||
|
|
||||||
promote_snapcraft:
|
promote_snapcraft:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install Snapcraft with LXD
|
- name: Install Snapcraft
|
||||||
uses: samuelmeuli/action-snapcraft@v2
|
uses: samuelmeuli/action-snapcraft@v2
|
||||||
with:
|
|
||||||
use_lxd: ${{ matrix.os == 'ubuntu-18.04' }}
|
|
||||||
- name: Promote Snap
|
- name: Promote Snap
|
||||||
env:
|
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
snapcraft login
|
|
||||||
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||||
if [ "$RELEASE_TYPE" = "rc" ]; then
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue