version 0.2.0 #9
Workflow file for this run
This file contains hidden or 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: Publish | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| android: | |
| name: "Publish Android" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - run: flutter pub get | |
| - run: flutter build apk | |
| - run: flutter build appbundle | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: android | |
| path: build/app/outputs/flutter-apk/app-release.apk | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: android_bundle | |
| path: build/app/outputs/bundle/release/app.aab | |
| web: | |
| runs-on: "ubuntu-latest" | |
| name: "Publish Web" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - run: flutter pub get | |
| - run: flutter build web | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: web | |
| path: build/web/ | |
| linux: | |
| name: "Publish Linux" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - run: sudo apt-get update -y && sudo apt-get install -y ninja-build libgtk-3-dev libsecret-1-dev | |
| - run: flutter pub get | |
| - run: flutter build linux | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux_x64 | |
| path: build/linux/x64/release/bundle/ | |
| windows: | |
| runs-on: windows-latest | |
| name: "Publish Windows" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - run: flutter pub get | |
| - run: flutter build windows | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows_x64 | |
| path: build/windows/x64/runner/Release/ | |
| macos: | |
| name: "Publish macOS" | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| - run: flutter pub get | |
| - run: flutter build macos | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos | |
| path: build/macos/Build/Products/Release/*.app | |
| release: | |
| name: "Create Release" | |
| needs: [android, web, linux, windows, macos] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts/ | |
| - name: Archive artifacts | |
| run: | | |
| cd artifacts | |
| for dir in */; do | |
| name="${dir%/}" | |
| zip -r "../${name}.zip" "$dir" | |
| done | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| files: "*.zip" | |
| generate_release_notes: true |