-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 1.96 KB
/
release-please.yaml
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
on:
push:
branches:
- main
name: Run Release Please
jobs:
release-please:
runs-on: ubuntu-latest
# Release-please creates a PR that tracks all changes
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: simple
command: manifest
default-branch: main
- name: Dump Release Please Output
env:
RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }}
run: |
echo "$RELEASE_PLEASE_OUTPUT"
outputs:
release_created: ${{ steps.release.outputs.release_created }}
flutter-release:
needs: release-please
runs-on: ubuntu-latest
env:
FLUTTER_CHANNEL: stable
FLUTTER_VERSION: 3.22.2
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}
- name: fetch submodules
run: git submodule update --init --recursive
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_CHANNEL }}
- name: Copy iOS
working-directory: ios/Classes
run: cp -r confidence-sdk/Sources/Confidence .
- name: Remove the submodule
working-directory: ios/Classes
run: rm -rf confidence-sdk && git rm -r --cached .
- name: Setup Pub Credentials
shell: bash
env:
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }}
PUB_REFRESH_TOKEN: ${{ secrets.PUB_REFRESH_TOKEN }}
PUB_TOKEN_ENDPOINT: ${{ secrets.PUB_TOKEN_ENDPOINT }}
PUB_EXPIRATION: ${{ secrets.PUB_EXPIRATION }}
run: |
sh ./pub_login.sh
- name: Check Publish Warnings
run: |
flutter pub publish --dry-run
- name: Publish Package
run: |
yes | flutter pub publish