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_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
|
|
||||||
- uses: snapcore/action-build@v1
|
|
||||||
id: snapcraft
|
|
||||||
- name: Publish Snap
|
|
||||||
run: snapcraft push ./*.snap
|
|
||||||
|
|
||||||
deploy_playstore_internal:
|
deploy_playstore_internal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
|
|
@ -76,19 +76,23 @@ 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:
|
promote_snapcraft:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- uses: snapcore/action-build@v1
|
- name: Install Snapcraft with LXD
|
||||||
id: snapcraft
|
uses: samuelmeuli/action-snapcraft@v2
|
||||||
- name: Publish Snap
|
with:
|
||||||
run: snapcraft push ./*.snap
|
use_lxd: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
- name: Promote Snap
|
- name: Promote Snap
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
echo "${{ SNAPCRAFT_TOKEN }}" >> snapcrafttoken.txt
|
||||||
|
snapcraft login --with snapcrafttoken.txt
|
||||||
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||||
if [ "$RELEASE_TYPE" = "rc" ]; then
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue