Update some Actions to their newest latest versions (#1941) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Snapshot | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: github.repository == 'mobile-dev-inc/maestro' | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 11 | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Retrieve version | |
run: | | |
echo "VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2)" >> $GITHUB_ENV | |
- name: Upload Maestro utils release | |
run: ./gradlew clean :maestro-utils:publish --no-daemon --no-parallel | |
if: endsWith(env.VERSION_NAME, '-SNAPSHOT') | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
- name: Upload Maestro client release | |
run: ./gradlew clean :maestro-client:publish --no-daemon --no-parallel | |
if: endsWith(env.VERSION_NAME, '-SNAPSHOT') | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
- name: Upload Maestro ios release | |
run: ./gradlew clean :maestro-ios:publish --no-daemon --no-parallel | |
if: endsWith(env.VERSION_NAME, '-SNAPSHOT') | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
- name: Upload Maestro orchestra release | |
run: ./gradlew clean :maestro-orchestra:publish --no-daemon --no-parallel | |
if: endsWith(env.VERSION_NAME, '-SNAPSHOT') | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
- name: Upload Maestro Orchestra Models release | |
run: ./gradlew clean :maestro-orchestra-models:publish --no-daemon --no-parallel | |
if: endsWith(env.VERSION_NAME, '-SNAPSHOT') | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
- name: Upload Maestro Proto release | |
run: ./gradlew clean :maestro-proto:publish --no-daemon --no-parallel | |
if: endsWith(env.VERSION_NAME, '-SNAPSHOT') | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
- name: Upload Maestro XCUiTest Driver | |
run: ./gradlew clean :maestro-ios-driver:publish --no-daemon --no-parallel | |
if: endsWith(env.VERSION_NAME, '-SNAPSHOT') | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} |