build: fix snapcraft edge release

This commit is contained in:
Johannes Millan 2023-02-11 15:30:19 +01:00
parent b23de65462
commit 75426dfeed

View file

@ -57,20 +57,24 @@ jobs:
build_script_name: empty
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
# DISABLED until working again
# - name: Install Snapcraft
# uses: samuelmeuli/action-snapcraft@v1
# with:
# # Log in to Snap Store
# snapcraft_token: ${{ secrets.snapcraft_token }}
# # rename to possibly fix release issue
# - run: find ./app-builds -type f -name '*.snap' -exec sh -c 'x="{}"; mv "$x" "app-builds/sp.snap"' \;
# # Release to edge if no tag and to candidate if tag
# - run: snapcraft push app-builds/sp.snap --release edge
# if: false == startsWith(github.ref, 'refs/tags/v')
# - run: snapcraft push app-builds/sp.snap --release candidate
# if: startsWith(github.ref, 'refs/tags/v')
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
# rename to possibly fix release issue
- run: find ./app-builds -type f -name '*.snap' -exec sh -c 'x="{}"; mv "$x" "app-builds/sp.snap"' \;
# Release to edge if no tag and to candidate if tag
- run: snapcraft push app-builds/sp.snap --release edge
if: false == startsWith(github.ref, 'refs/tags/v')
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
- run: snapcraft push app-builds/sp.snap --release candidate
if: startsWith(github.ref, 'refs/tags/v')
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
mac-bin:
runs-on: macos-latest