diff --git a/.github/workflows/mavenCentral_cd.yml b/.github/workflows/mavenCentral_cd.yml index b72e8a91b2..0757feafd5 100644 --- a/.github/workflows/mavenCentral_cd.yml +++ b/.github/workflows/mavenCentral_cd.yml @@ -16,6 +16,8 @@ jobs: MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} runs-on: ubuntu-22.04 + permissions: + contents: write # if you have a protection rule on your repository, you'll need to give write permission to the workflow. steps: - name: Checkout Code uses: actions/checkout@v4 @@ -63,10 +65,12 @@ jobs: MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} run: mvn --batch-mode deploy "-DskipTests" "-Dgpg.keyname=${{secrets.GPG_KEYNAME}}" "-Dgpg.passphrase=${{secrets.GPG_PASSPHRASE}}" - name: Publish updated JavaDocs + uses: MathieuSoysal/Javadoc-publisher.yml@v2.5.0 env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - run: | - git config --global user.email "mohab.mohieeldeen@outlook.com" - git config --global user.name "Mohab Mohie" - mvn resources:resources javadoc:javadoc scm-publish:publish-scm "-DskipTests" "-Dgpg.keyname=${{secrets.GPG_KEYNAME}}" "-Dgpg.passphrase=${{secrets.GPG_PASSPHRASE}}" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + javadoc-branch: javadoc + java-version: 21 + target-folder: javadoc # url will be https://.github.io//javadoc, This can be left as nothing to generate javadocs in the root folder. + project: maven \ No newline at end of file diff --git a/.gitignore b/.gitignore index 261f31d34c..c544163ad6 100755 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ OpenLHReport.js /src/main/resources/docker-compose/data/ /src/test/resources/testDataFiles/allure-results/ /src/test/resources/META-INF/services/ +/.idea/ \ No newline at end of file diff --git a/pom.xml b/pom.xml index f818204430..5efd051cce 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 io.github.shafthq SHAFT_ENGINE - 9.1.20250216 + 9.1.20250224 ${project.groupId}:${project.artifactId} SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve. diff --git a/src/main/java/com/shaft/properties/internal/Internal.java b/src/main/java/com/shaft/properties/internal/Internal.java index 673549a4dc..c3ea078de9 100644 --- a/src/main/java/com/shaft/properties/internal/Internal.java +++ b/src/main/java/com/shaft/properties/internal/Internal.java @@ -10,7 +10,7 @@ }) public interface Internal extends EngineProperties { @Key("shaftEngineVersion") - @DefaultValue("9.1.20250216") + @DefaultValue("9.1.20250224") String shaftEngineVersion(); @Key("watermarkImagePath")