Skip to content

Commit 7c56132

Browse files
author
crow
committed
Fix prep release workflow
1 parent a812e88 commit 7c56132

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

.github/workflows/prep-release.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ permissions:
3131
jobs:
3232
prepare-release:
3333
runs-on: macos-latest
34-
timeout-minutes: 15
34+
timeout-minutes: 20
3535

3636
steps:
3737
- uses: actions/checkout@v4
@@ -40,16 +40,39 @@ jobs:
4040
fetch-depth: 0
4141
token: ${{ secrets.GITHUB_TOKEN }}
4242

43-
- name: Run Updates
43+
- name: Setup Java
44+
uses: actions/setup-java@v4
45+
with:
46+
distribution: 'zulu' # Or temurin, etc.
47+
java-version: '17' # Choose appropriate Java version
48+
49+
- name: Setup Flutter
50+
uses: subosito/flutter-action@v2
51+
with:
52+
channel: 'stable'
53+
54+
- name: Run Version Updates
4455
run: |
4556
./scripts/update_version.sh "${{ github.event.inputs.flutter_version }}" || exit 1
4657
if [ -n "${{ github.event.inputs.proxy_version }}" ]; then
58+
# Ensure xcodebuild is removed from this script (See Step 1 above)
4759
./scripts/update_proxy_version.sh "${{ github.event.inputs.proxy_version }}" || exit 1
4860
fi
4961
./scripts/update_changelog.sh "${{ github.event.inputs.flutter_version }}" \
5062
$([ -n "${{ github.event.inputs.ios_version }}" ] && echo "--ios ${{ github.event.inputs.ios_version }}") \
5163
$([ -n "${{ github.event.inputs.android_version }}" ] && echo "--android ${{ github.event.inputs.android_version }}") || exit 1
5264
65+
- name: Get Example Flutter dependencies
66+
# Run flutter pub get inside the example directory
67+
run: flutter pub get
68+
working-directory: ./example
69+
70+
- name: Resolve iOS Package Dependencies
71+
# Run xcodebuild inside the example/ios directory
72+
run: xcodebuild -resolvePackageDependencies
73+
working-directory: ./example/ios
74+
# -------------------------------------
75+
5376
- name: Verify Changes
5477
id: verify
5578
run: |

scripts/update_proxy_version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ sed -i.bak -E "s/(\.package\(name: *\"AirshipFrameworkProxy\", *url: *\"[^\"]+\"
1616

1717
find "$ROOT_PATH" -name "*.bak" -delete
1818

19-
pushd "$ROOT_PATH/example/ios"
20-
xcodebuild -resolvePackageDependencies
21-
popd
19+
#pushd "$ROOT_PATH/example/ios"
20+
#xcodebuild -resolvePackageDependencies
21+
#popd

0 commit comments

Comments
 (0)