Skip to content

Commit b5fea5b

Browse files
committed
Update workflow
1 parent 9fd7973 commit b5fea5b

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Manual Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Release version'
8+
required: true
9+
scripts_version:
10+
description: 'Gradle scripts version'
11+
required: true
12+
bom_version:
13+
description: 'Commons bom version'
14+
required: true
15+
16+
env:
17+
GH_USER_NAME: github.actor
18+
SCRIPTS_VERSION: ${{ github.event.inputs.scripts_version }}
19+
BOM_VERSION: ${{ github.event.inputs.bom_version }}
20+
REPOSITORY_URL: 'https://maven.pkg.github.com/'
21+
22+
jobs:
23+
release:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v2
28+
29+
- name: Set up JDK 21
30+
uses: actions/setup-java@v2
31+
with:
32+
distribution: 'adopt'
33+
java-version: '21'
34+
35+
- name: Grant execute permission for gradlew
36+
run: chmod +x gradlew
37+
38+
- name: Setup git credentials
39+
uses: oleksiyrudenko/gha-git-credentials@v2
40+
with:
41+
name: 'reportportal.io'
42+
email: 'support@reportportal.io'
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: Release with Gradle
46+
id: release
47+
run: |
48+
./gradlew release -PreleaseMode -Pscripts.version=${{env.SCRIPTS_VERSION}} -Pbom.version=${{env.BOM_VERSION}} \
49+
-PgithubUserName=${{env.GH_USER_NAME}} -PgithubToken=${{secrets.GITHUB_TOKEN}} \
50+
-PpublishRepo=${{ env.REPOSITORY_URL }}${{ github.repository }} \
51+
-PgpgPassphrase=${{secrets.GPG_PASSPHRASE}} -PgpgPrivateKey="${{secrets.GPG_PRIVATE_KEY}}"

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111

1212
env:
1313
GH_USER_NAME: github.actor
14-
SCRIPTS_VERSION: 5.12.1
15-
BOM_VERSION: 5.13.0
14+
SCRIPTS_VERSION: 5.14.0
15+
BOM_VERSION: 5.14.2
1616

1717
jobs:
1818
release:

0 commit comments

Comments
 (0)