Skip to content

Commit 854ce99

Browse files
committed
Build apps and attach to release
1 parent ea43912 commit 854ce99

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
on:
2-
push:
3-
branches:
4-
- main
5-
pull_request:
6-
branches:
7-
- main
8-
1+
on: [workflow_call]
92
name: Appium Flutter Integration Server
103
jobs:
114
android:

.github/workflows/publish.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ on:
55

66
name: Publish to pub.dev
77
jobs:
8+
build:
9+
uses: ./.github/workflows/main.yml # use the callable tests job to run tests
810
publish:
11+
needs: [ build ]
912
permissions:
1013
id-token: write # Required for authentication using OIDC
1114
defaults:
@@ -26,7 +29,22 @@ jobs:
2629
run: flutter pub get
2730
- name: Publish
2831
run: dart pub publish --force
29-
32+
- uses: actions/download-artifact@v4
33+
with:
34+
name: Android build
35+
- name: Display structure of downloaded files
36+
run: ls -R
37+
- uses: actions/download-artifact@v4
38+
with:
39+
name: ios-build
40+
- name: Display structure of downloaded files
41+
run: ls -R
42+
- name: Upload Android Build to Release
43+
uses: softprops/action-gh-release@v2
44+
with:
45+
files: |
46+
app-debug.apk
47+
ios.zip
3048
- name: Update Flutter Driver with Version
3149
run: |
3250
TAG_NAME=$(curl -s "https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/tags" | grep -m 1 '"name"' | sed -E 's/.*"name": "([^"]+)".*/\1/')

server/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appium_flutter_server
22
description: "Appium Flutter server using Integration Test package for testing Flutter apps with Appium"
3-
version: 0.0.12
3+
version: 0.0.13
44
homepage: "https://github.com/AppiumTestDistribution/appium-flutter-server"
55

66
environment:

0 commit comments

Comments
 (0)