Create Snap Package #1
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: Create Snap Package | |
on: | |
# push: | |
# branches: | |
# - main | |
workflow_dispatch: | |
env: | |
FLUTTER_VERSION: '3.24.3' | |
jobs: | |
build_and_release_linux_snap_edge_amd64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 5 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: ${{env.FLUTTER_VERSION}} | |
- run: sudo apt update | |
- run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libmpv-dev | |
- run: flutter pub get | |
- uses: snapcore/action-build@v1 | |
id: build | |
- uses: snapcore/action-publish@v1 | |
if: steps.build.outcome == 'success' | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | |
with: | |
snap: ${{ steps.build.outputs.snap }} | |
release: edge |