File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 matrix :
1313 platform :
1414 - amd64
15- - arm64
1615 # env:
1716 # WIREDASH_PROJECT_ID: ${{ secrets.WIREDASH_PROJECT_ID }}
1817 # WIREDASH_PROJECT_SECRET: ${{ secrets.WIREDASH_PROJECT_SECRET }}
2423 channel : " stable"
2524 - uses : snapcore/action-build@v1
2625 id : snapcraft
27- # - uses: diddlesnaps/snapcraft-multiarch-action@v1
28- # id: snapcraft
29- # with:
30- # architecture: ${{ matrix.platform }}
31- # environment: |
3226 - name : Test installation
3327 run : |
3428 sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
Original file line number Diff line number Diff line change 1+ name : snap amd64
2+ on :
3+ release :
4+ types : [created]
5+ push :
6+ branches :
7+ - release/snapstore
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ platform :
14+ # https://forum.snapcraft.io/t/build-on-multiple-architectures-with-github-actions/39161/3
15+ - arm64
16+ # env:
17+ # WIREDASH_PROJECT_ID: ${{ secrets.WIREDASH_PROJECT_ID }}
18+ # WIREDASH_PROJECT_SECRET: ${{ secrets.WIREDASH_PROJECT_SECRET }}
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Install Flutter
22+ uses : subosito/flutter-action@v2
23+ with :
24+ channel : " stable"
25+ - uses : diddlesnaps/snapcraft-multiarch-action@v1
26+ id : snapcraft
27+ with :
28+ architecture : ${{ matrix.platform }}
29+ - name : Test installation
30+ run : |
31+ sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
32+ - name : Publish to Snapstore Edge
33+ uses : snapcore/action-publish@v1
34+ env :
35+ SNAPCRAFT_STORE_CREDENTIALS : ${{ secrets.SNAPCRAFT_LOGIN }}
36+ with :
37+ snap : ${{ steps.snapcraft.outputs.snap }}
38+ release : edge
You can’t perform that action at this time.
0 commit comments