chore(release): publish packages #55
Workflow file for this run
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: Publish Release(s) | |
on: | |
push: | |
tags: | |
- 'flutter_nekoton_bridge-v*' | |
env: | |
CARGO_INCREMENTAL: "1" | |
permissions: | |
contents: write | |
jobs: | |
publish_github_release: | |
# macOS because we can cross-compile to all other platforms from it | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.24.0' | |
channel: 'stable' | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
- uses: bluefireteam/melos-action@v3 | |
- uses: goto-bus-stop/setup-zig@v2 | |
- uses: KyleMayes/install-llvm-action@v2 | |
with: | |
version: "15" | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r25b | |
- name: Build all library binaries | |
run: melos run build | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: platform-build/* | |
publish_pub_release: | |
needs: publish_github_release | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # This is required for authentication using OIDC | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.24.0' | |
channel: 'stable' | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
- uses: bluefireteam/melos-action@v3 | |
- name: Dry-run publish to pub.dev | |
run: melos publish -y --dry-run --scope="flutter_nekoton_bridge" | |
- name: Publish to pub.dev | |
run: melos publish -y --no-dry-run --scope="flutter_nekoton_bridge" |