|
7 | 7 | - "powersync_flutter_libs-v[0-9]+.[0-9]+.[0-9]+*"
|
8 | 8 | workflow_dispatch:
|
9 | 9 |
|
10 |
| -concurrency: |
11 |
| - group: ${{ github.workflow }} |
12 |
| - cancel-in-progress: false |
13 |
| - |
14 | 10 | jobs:
|
15 | 11 | publish-packages:
|
16 |
| - name: Publish packages |
| 12 | + name: Publish powersync |
| 13 | + permissions: |
| 14 | + contents: write |
| 15 | + id-token: write # Required for authentication using OIDC |
| 16 | + runs-on: [ubuntu-latest] |
| 17 | + if: contains(github.ref_name, 'powersync-v') |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + |
| 21 | + - uses: dart-lang/setup-dart@v1 # Creates and configures token for publishing |
| 22 | + |
| 23 | + - name: Publish powersync |
| 24 | + run: | |
| 25 | + dart pub publish --force |
| 26 | + working-directory: packages/powersync |
| 27 | + |
| 28 | + publish-powersync_attachments_helper: |
| 29 | + name: Publish powersync_attachments_helper |
17 | 30 | permissions:
|
18 | 31 | contents: write
|
19 | 32 | id-token: write # Required for authentication using OIDC
|
20 | 33 | runs-on: [ubuntu-latest]
|
| 34 | + if: contains(github.ref_name, 'powersync_attachments_helper-v') |
21 | 35 | steps:
|
22 | 36 | - uses: actions/checkout@v4
|
23 | 37 |
|
24 | 38 | - uses: dart-lang/setup-dart@v1 # Creates and configures token for publishing
|
25 | 39 |
|
26 |
| - - name: Install Flutter |
27 |
| - uses: subosito/flutter-action@v2 |
28 |
| - with: |
29 |
| - flutter-version: "3.x" |
30 |
| - channel: "stable" |
| 40 | + - name: Publish powersync_attachments_helper |
| 41 | + run: | |
| 42 | + dart pub publish --force |
| 43 | + working-directory: packages/powersync_attachments_helper |
31 | 44 |
|
32 |
| - - name: Install melos |
33 |
| - run: flutter pub global activate melos |
| 45 | + publish-powersync_flutter_libs: |
| 46 | + name: Publish powersync_flutter_libs |
| 47 | + permissions: |
| 48 | + contents: write |
| 49 | + id-token: write # Required for authentication using OIDC |
| 50 | + runs-on: [ubuntu-latest] |
| 51 | + if: contains(github.ref_name, 'powersync_flutter_libs-v') |
| 52 | + steps: |
| 53 | + - uses: actions/checkout@v4 |
34 | 54 |
|
35 |
| - - name: Install dependencies |
36 |
| - run: melos bootstrap |
| 55 | + - uses: dart-lang/setup-dart@v1 # Creates and configures token for publishing |
37 | 56 |
|
38 | 57 | - name: Set powersync core version
|
39 | 58 | run: echo "CORE_VERSION=v0.1.8" >> $GITHUB_ENV
|
| 59 | + - name: Download binaries |
| 60 | + run: sh tool/download_binaries.sh |
40 | 61 |
|
41 |
| - - name: Publish packages dry run |
42 |
| - run: | |
43 |
| - melos publish --yes |
44 |
| -
|
45 |
| - - name: Publish packages |
| 62 | + - name: Publish powersync_flutter_libs |
46 | 63 | run: |
|
47 |
| - melos publish --no-dry-run --yes |
| 64 | + dart pub publish --force |
| 65 | + working-directory: packages/powersync_flutter_libs |
0 commit comments