CI: Only promote snap but let launchpad build
This commit is contained in:
parent
b255ddcd61
commit
9e0f9f5d23
2 changed files with 9 additions and 17 deletions
12
.github/workflows/main_deploy.yaml
vendored
12
.github/workflows/main_deploy.yaml
vendored
|
|
@ -44,18 +44,6 @@ jobs:
|
|||
publish_dir: ./public
|
||||
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
|
||||
- uses: snapcore/action-build@v1
|
||||
id: snapcraft
|
||||
- name: Publish Snap
|
||||
run: snapcraft push ./*.snap
|
||||
|
||||
deploy_playstore_internal:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue