-
Notifications
You must be signed in to change notification settings - Fork 4
78 lines (69 loc) · 2.21 KB
/
publish-release-fnb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
channel: 'stable'
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- uses: bluefireteam/melos-action@v2
- uses: goto-bus-stop/setup-zig@v2
- uses: KyleMayes/install-llvm-action@v1
with:
version: "15"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- 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@v1
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@v3
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
channel: 'stable'
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- uses: bluefireteam/melos-action@v2
- 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"