Skip to content

Commit

Permalink
Build apps and attach to release
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Jun 28, 2024
1 parent ea43912 commit 854ce99
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

on: [workflow_call]
name: Appium Flutter Integration Server
jobs:
android:
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ on:

name: Publish to pub.dev
jobs:
build:
uses: ./.github/workflows/main.yml # use the callable tests job to run tests
publish:
needs: [ build ]
permissions:
id-token: write # Required for authentication using OIDC
defaults:
Expand All @@ -26,7 +29,22 @@ jobs:
run: flutter pub get
- name: Publish
run: dart pub publish --force

- uses: actions/download-artifact@v4
with:
name: Android build
- name: Display structure of downloaded files
run: ls -R
- uses: actions/download-artifact@v4
with:
name: ios-build
- name: Display structure of downloaded files
run: ls -R
- name: Upload Android Build to Release
uses: softprops/action-gh-release@v2
with:
files: |
app-debug.apk
ios.zip
- name: Update Flutter Driver with Version
run: |
TAG_NAME=$(curl -s "https://api.github.com/repos/AppiumTestDistribution/appium-flutter-server/tags" | grep -m 1 '"name"' | sed -E 's/.*"name": "([^"]+)".*/\1/')
Expand Down
2 changes: 1 addition & 1 deletion server/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: appium_flutter_server
description: "Appium Flutter server using Integration Test package for testing Flutter apps with Appium"
version: 0.0.12
version: 0.0.13
homepage: "https://github.com/AppiumTestDistribution/appium-flutter-server"

environment:
Expand Down

0 comments on commit 854ce99

Please sign in to comment.