ci: Rewrite promote_snapcraft job

pull/470/head
krille-chan 2 years ago
parent 577864df24
commit 1ee4e2b7de
No known key found for this signature in database

@ -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…
Cancel
Save