fix: flow for amd #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: snap amd64 | |
on: | |
release: | |
types: [created] | |
push: | |
branches: | |
- release/snapstore | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# platform: | |
# - amd64 | |
# - arm64 | |
env: | |
WIREDASH_PROJECT_ID: ${{ secrets.WIREDASH_PROJECT_ID }} | |
WIREDASH_PROJECT_SECRET: ${{ secrets.WIREDASH_PROJECT_SECRET }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- uses: snapcore/action-build@v1 | |
id: snapcraft | |
# - uses: diddlesnaps/snapcraft-multiarch-action@v1 | |
# id: snapcraft | |
# with: | |
# architecture: ${{ matrix.platform }} | |
# environment: | | |
- name: Test installation | |
run: | | |
sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }} | |
- name: Publish to Snapstore Edge | |
uses: snapcore/action-publish@v1 | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }} | |
with: | |
snap: ${{ steps.snapcraft.outputs.snap }} | |
release: edge |