Skip to content

Commit

Permalink
ci: Rewrite promote_snapcraft job
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Jul 25, 2023
1 parent 577864d commit 1ee4e2b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,15 @@ jobs:

promote_snapcraft:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Snapcraft with LXD
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
with:
use_lxd: ${{ matrix.os == 'ubuntu-18.04' }}
- name: Promote Snap
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
run: |
snapcraft login
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
if [ "$RELEASE_TYPE" = "rc" ]; then
snapcraft promote fluffychat --from-channel edge --to-channel candidate
Expand Down

0 comments on commit 1ee4e2b

Please sign in to comment.