Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .github/workflows/publish.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:

env:
XCODE_VERSION: 14.3.1
ZIP_PKG_NAME_IOS: "WebDriverAgentRunner-Runner.zip"
PKG_PATH_IOS: "appium_wda_ios"
ZIP_PKG_NAME_TVOS: "WebDriverAgentRunner_tvOS-Runner.zip"
PKG_PATH_TVOS: "appium_wda_tvos"

steps:
Expand All @@ -35,7 +33,7 @@ jobs:
- run: npm run test
name: Run test

# building WDA packages
# building WDA packages to test package build
- name: Build iOS
run: |
xcodebuild clean build-for-testing \
Expand All @@ -44,13 +42,6 @@ jobs:
-scheme WebDriverAgentRunner \
-destination generic/platform=iOS \
CODE_SIGNING_ALLOWED=NO ARCHS=arm64
- name: Creating a zip of WebDriverAgentRunner-Runner.app for iOS after removing test frameworks
run: |
pushd appium_wda_ios/Build/Products/Debug-iphoneos
rm -rf WebDriverAgentRunner-Runner.app/Frameworks/XC*.framework
zip -r $ZIP_PKG_NAME_IOS WebDriverAgentRunner-Runner.app
popd
mv $PKG_PATH_IOS/Build/Products/Debug-iphoneos/$ZIP_PKG_NAME_IOS ./
- name: Build tvOS
run: |
xcodebuild clean build-for-testing \
Expand All @@ -59,18 +50,10 @@ jobs:
-scheme WebDriverAgentRunner_tvOS \
-destination generic/platform=tvOS \
CODE_SIGNING_ALLOWED=NO ARCHS=arm64
- name: Creating a zip of WebDriverAgentRunner-Runner.app for tvOS after removing test frameworks
run: |
pushd appium_wda_tvos/Build/Products/Debug-appletvos
rm -rf WebDriverAgentRunner_tvOS-Runner.app/Frameworks/XC*.framework
zip -r $ZIP_PKG_NAME_TVOS WebDriverAgentRunner_tvOS-Runner.app
popd
mv $PKG_PATH_TVOS/Build/Products/Debug-appletvos/$ZIP_PKG_NAME_TVOS ./

# release tasks
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release

40 changes: 27 additions & 13 deletions .github/workflows/wda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Building WebDriverAgent

on:
workflow_dispatch:
workflow_run:
workflows: ["Release"]
types:
- completed
release:
types: [published]

env:
HOST: macos-13
Expand Down Expand Up @@ -56,14 +54,25 @@ jobs:
WD: appium_wda_tvos/Build/Products/Debug-appletvos
ZIP_PKG_NAME: "${{ env.ZIP_PKG_NAME_TVOS }}"

- name: Upload the built generic app package for iOS
uses: actions/upload-artifact@v3.1.0
- name: upload WebDriverAgentRunner-Runner.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.token }}
with:
path: "${{ env.ZIP_PKG_NAME_IOS }}"
- name: Upload the built generic app package for tvOS
uses: actions/upload-artifact@v3.1.0
upload_url: ${{ github.event.release.upload_url }}
asset_path: "${{ env.ZIP_PKG_NAME_IOS }}"
asset_name: WebDriverAgentRunner-Runner.zip
asset_content_type: application/zip

- name: upload WebDriverAgentRunner_tvOS-Runner.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.token }}
with:
path: "${{ env.ZIP_PKG_NAME_TVOS }}"
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.ZIP_PKG_NAME_TVOS }}"
asset_name: WebDriverAgentRunner_tvOS-Runner.zip
asset_content_type: application/zip

for_simulator_devices:
needs: [host_machine]
Expand All @@ -89,7 +98,12 @@ jobs:
SCHEME: WebDriverAgentRunner${{ matrix.target }}
ARCHS: ${{ matrix.arch }}
ZIP_PKG_NAME: "WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
- name: Upload the built generic app package for WebDriverAgentRunner${{ matrix.target }} with ${{ matrix.arch }}
uses: actions/upload-artifact@v3.1.0
- name: upload windows WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.token }}
with:
path: "WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
upload_url: ${{ github.event.release.upload_url }}
asset_path: "WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
asset_name: "WebDriverAgentRunner${{ matrix.target }}-Build-Sim-${{ matrix.arch }}.zip"
asset_content_type: application/zip
6 changes: 1 addition & 5 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
"assets": ["docs", "package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
["@semantic-release/github", {
"assets": [
"WebDriverAgentRunner-Runner.zip",
"WebDriverAgentRunner_tvOS-Runner.zip"
]}]
["@semantic-release/github"]
]
}