Skip to content

Merge pull request #2098 from reportportal/rc/5.12.1 #37

Merge pull request #2098 from reportportal/rc/5.12.1

Merge pull request #2098 from reportportal/rc/5.12.1 #37

Workflow file for this run

name: Release
on:
push:
branches:
- master
paths-ignore:
- '.github/**'
- README.md
- gradle.properties
env:
GH_USER_NAME: github.actor
RELEASE_VERSION: 5.12.1
REPOSITORY_URL: 'https://maven.pkg.github.com/'
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: '[email protected]'
token: ${{ secrets.GITHUB_TOKEN }}
- 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}}