diff --git a/.github/workflows/release-maven-central.yml b/.github/workflows/release-maven-central.yml new file mode 100644 index 0000000..75fd3f3 --- /dev/null +++ b/.github/workflows/release-maven-central.yml @@ -0,0 +1,61 @@ +name: Publish package to Maven Central +on: + pull_request: + branches: + - master + types: [closed] + +jobs: + publish: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Step 1 - Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Step 2 - Set up Maven Central Repository + uses: actions/setup-java@v3 + with: + java-version: "8" + distribution: "adopt" + server-id: ossrh + server-username: MVN_CENTRAL_USERNAME + server-password: MVN_CENTRAL_PASSWORD + gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} + gpg-passphrase: MVN_GPG_PASSPHRASE + + - name: Step 3 - Install GitVersion + uses: gittools/actions/gitversion/setup@v0 + with: + versionSpec: '5.x' + + - name: Step 4 - Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v0 + with: + useConfigFile: true + + - name: Step 5 - Create Release + id: create_release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TITLE: ${{ github.event.pull_request.title }} + BODY: ${{ github.event.pull_request.body }} + VERSION: "v${{ steps.gitversion.outputs.semVer }}" + with: + tag_name: ${{ env.VERSION }} + release_name: ${{ env.VERSION }} ${{ env.TITLE }} + body: ${{ env.BODY }} + draft: false + prerelease: false + + - name: Step 6 - Publish package + run: | + mvn -Dmaven.test.skip=true -P release -Drevision=${{ steps.gitversion.outputs.semVer }} deploy + env: + MVN_CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MVN_CENTRAL_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MVN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..d1f11e4 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,6 @@ +mode: Mainline +increment: Inherit +branches: {} +ignore: + sha: [] + diff --git a/LICENSE b/LICENSE index a6ceff9..ecef83a 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2023 Aquality Automation + Copyright 2024 Aquality Automation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pom.xml b/pom.xml index efe712a..e816250 100644 --- a/pom.xml +++ b/pom.xml @@ -13,14 +13,20 @@ Library with core functions simplifying work with Appium-controlled applications. https://github.com/aquality-automation/aquality-appium-mobile-java + + UTF-8 + UTF-8 + 4.0.0-SNAPSHOT + + ossrh - https://oss.sonatype.org/content/repositories/snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ @@ -151,6 +157,12 @@ sign + + + --pinentry-mode + loopback + + @@ -161,7 +173,7 @@ true ossrh - https://oss.sonatype.org/ + https://s01.oss.sonatype.org/ true @@ -172,19 +184,19 @@ com.github.aquality-automation aquality-selenium-core - 3.0.0 + 3.1.1 io.appium java-client - 8.3.0 + 8.6.0 org.testng testng - 7.5 + 7.5.1 test