Skip to content

Commit

Permalink
change release file, to use a reusable template
Browse files Browse the repository at this point in the history
  • Loading branch information
EricesNicolas committed Jan 24, 2025
1 parent 5c5eea5 commit 86ca696
Showing 1 changed file with 11 additions and 40 deletions.
51 changes: 11 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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: '[email protected]'
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

0 comments on commit 86ca696

Please sign in to comment.