mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +00:00
Merge pull request #747 from krille-chan/krille/promote-snapcraft
ci: Promote snapcraft from CI
This commit is contained in:
commit
4b8c94f4a5
1 changed files with 21 additions and 0 deletions
21
.github/workflows/release.yaml
vendored
21
.github/workflows/release.yaml
vendored
|
@ -168,3 +168,24 @@ jobs:
|
|||
bundle exec fastlane deploy_release
|
||||
fi
|
||||
cd ..
|
||||
|
||||
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
|
||||
uses: samuelmeuli/action-snapcraft@v2
|
||||
- run: snapcraft
|
||||
- name: Promote Snap
|
||||
env: # Workaround for https://github.com/snapcore/snapcraft/issues/4439
|
||||
SNAPCRAFT_HAS_TTY: "true"
|
||||
run: |
|
||||
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||
yes | snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
||||
else
|
||||
yes | snapcraft promote fluffychat --from-channel edge --to-channel stable
|
||||
fi
|
Loading…
Reference in a new issue