CI: Add Snapcraft deploy jobs
This commit is contained in:
parent
7c64f56a38
commit
8d75e58aa9
2 changed files with 36 additions and 0 deletions
14
.github/workflows/main_deploy.yaml
vendored
14
.github/workflows/main_deploy.yaml
vendored
|
|
@ -44,6 +44,20 @@ jobs:
|
||||||
publish_dir: ./public
|
publish_dir: ./public
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
||||||
|
|
||||||
|
deploy_snapcraft_edge:
|
||||||
|
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
|
||||||
|
- name: Build Snap
|
||||||
|
run: snapcraft
|
||||||
|
- name: Publish Snap
|
||||||
|
run: snapcraft push ./*.snap
|
||||||
|
|
||||||
deploy_playstore_internal:
|
deploy_playstore_internal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
22
.github/workflows/release.yaml
vendored
22
.github/workflows/release.yaml
vendored
|
|
@ -76,6 +76,28 @@ jobs:
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
run: tar -czf fluffychat-linux-${{ matrix.architecture }}-${{ github.ref }}.tar.gz build/linux/${{ matrix.architecture }}/release/bundle/
|
run: tar -czf fluffychat-linux-${{ matrix.architecture }}-${{ github.ref }}.tar.gz build/linux/${{ matrix.architecture }}/release/bundle/
|
||||||
|
|
||||||
|
deploy_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
|
||||||
|
- name: Build Snap
|
||||||
|
run: snapcraft
|
||||||
|
- name: Publish Snap
|
||||||
|
run: snapcraft push ./*.snap
|
||||||
|
- name: Promote Snap
|
||||||
|
run: |
|
||||||
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||||
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
|
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
||||||
|
else
|
||||||
|
snapcraft promote fluffychat --from-channel edge --to-channel stable
|
||||||
|
fi
|
||||||
|
|
||||||
deploy_playstore:
|
deploy_playstore:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue