From 86ca6960e744792675441a7d226d55ba5df32310 Mon Sep 17 00:00:00 2001 From: Nicolas Erices Date: Fri, 24 Jan 2025 15:24:49 -0300 Subject: [PATCH] change release file, to use a reusable template --- .github/workflows/release.yml | 51 ++++++++--------------------------- 1 file changed, 11 insertions(+), 40 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c827934672..6a3f3edc3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,47 +1,18 @@ -name: Release +name: Release Workflow on: push: branches: - - master - paths-ignore: - - '.github/**' - - README.md - - gradle.properties - -env: - GH_USER_NAME: github.actor - RELEASE_VERSION: 5.13.2 - REPOSITORY_URL: 'https://maven.pkg.github.com/' + - feature/EPMRPP-98957 + #release: + #types: [published] jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up JDK 21 - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: '21' - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Setup git credentials - uses: oleksiyrudenko/gha-git-credentials@v2-latest - with: - name: 'reportportal.io' - email: 'support@reportportal.io' - token: ${{ secrets.GITHUB_TOKEN }} + publish-artifacts: + uses: reportportal/.github/.github/workflows/java-build-release.yaml@feature/EPMRPP-98957 #Don't forget replace with master before merge - - name: Release with Gradle - id: release - run: | - ./gradlew release -PreleaseMode \ - -PgithubUserName=${{env.GH_USER_NAME}} -PgithubToken=${{secrets.GITHUB_TOKEN}} \ - -PpublishRepo=${{ env.REPOSITORY_URL }}${{ github.repository }} \ - -PgpgPassphrase=${{secrets.GPG_PASSPHRASE}} -PgpgPrivateKey="${{secrets.GPG_PRIVATE_KEY}}" \ - -Prelease.releaseVersion=${{env.RELEASE_VERSION}} + with: + release_version: ${{ github.event.release.tag_name }} + repository_url: 'https://maven.pkg.github.com/' + gradle_command: ./gradlew build + branch: feature/EPMRPP-98957 #Don't forget replace with master before merge