|
|
|
@ -76,19 +76,23 @@ jobs:
|
|
|
|
|
- name: Create archive
|
|
|
|
|
run: tar -czf fluffychat-linux-${{ matrix.architecture }}-${{ github.ref }}.tar.gz build/linux/${{ matrix.architecture }}/release/bundle/
|
|
|
|
|
|
|
|
|
|
deploy_snapcraft:
|
|
|
|
|
promote_snapcraft:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
env:
|
|
|
|
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
|
|
|
|
steps:
|
|
|
|
|
- name: Check out Git repository
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
- uses: snapcore/action-build@v1
|
|
|
|
|
id: snapcraft
|
|
|
|
|
- name: Publish Snap
|
|
|
|
|
run: snapcraft push ./*.snap
|
|
|
|
|
- name: Install Snapcraft with LXD
|
|
|
|
|
uses: samuelmeuli/action-snapcraft@v2
|
|
|
|
|
with:
|
|
|
|
|
use_lxd: ${{ matrix.os == 'ubuntu-18.04' }}
|
|
|
|
|
- name: Promote Snap
|
|
|
|
|
env:
|
|
|
|
|
SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}
|
|
|
|
|
run: |
|
|
|
|
|
echo "${{ SNAPCRAFT_TOKEN }}" >> snapcrafttoken.txt
|
|
|
|
|
snapcraft login --with snapcrafttoken.txt
|
|
|
|
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
|
|
|
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
|
|
|
|
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
|
|
|
|