Skip to content

Create Snap Package

Create Snap Package #1

Workflow file for this run

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