mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-03 21:12:24 +00:00
build: fix snapcraft edge release
This commit is contained in:
parent
b23de65462
commit
75426dfeed
1 changed files with 17 additions and 13 deletions
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue