Skip to content

Commit

Permalink
fix: flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Arenukvern committed Mar 6, 2024
1 parent fdf8dd1 commit 418a3b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/release_snapstore.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,10 @@ jobs:
channel: "stable"
- uses: snapcore/action-build@v1
id: snapcraft
# Make sure the snap is installable
- name: Save snap for reuse
uses: actions/upload-artifact@v4
with:
name: last-answer-snap
path: ${{ steps.snapcraft.outputs.snap }}

publish:
# if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
- name: Download snap
uses: actions/download-artifact@v3
with:
name: last-answer-snap
path: .
- name: Publish to Snapstore Edge
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
with:
snap: ./last-answer.snap
snap: ${{ steps.snapcraft.outputs.snap }}
release: edge
5 changes: 3 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ apps:
- dbus-last-answer

# https://forum.snapcraft.io/t/failed-to-install-or-refresh-a-snap-flutter-does-not-exist/25623
# https://snapcraft.io/docs/architectures
architectures:
- build-on: amd64
- build-on: arm64
- build-on: [amd64]
- build-on: [arm64]

parts:
last-answer:
Expand Down

0 comments on commit 418a3b6

Please sign in to comment.