Skip to content

Commit d6a5a9a

Browse files
committed
Consolidate GHA jobs for efficiency
1 parent 0ba79b9 commit d6a5a9a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/test_and_build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test and Build
1+
name: Test and Release
22

33
on:
44
push:
@@ -18,11 +18,12 @@ jobs:
1818
java: [ '17', '21', '25' ]
1919
steps:
2020
- name: Harden the runner (Audit all outbound calls)
21-
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
21+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
2222
with:
2323
egress-policy: audit
24-
2524
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+
with:
26+
fetch-depth: 0
2627
- name: Set up JDK
2728
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
2829
with:
@@ -36,16 +37,11 @@ jobs:
3637
githubRelease:
3738
needs: test
3839
runs-on: ubuntu-latest
39-
env:
40-
GITHUB_USER: "TWChennai"
41-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
42-
PRERELEASE: "${{ github.event.inputs.prerelease }}"
4340
steps:
4441
- name: Harden the runner (Audit all outbound calls)
45-
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
42+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
4643
with:
4744
egress-policy: audit
48-
4945
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5046
with:
5147
fetch-depth: 0
@@ -54,5 +50,9 @@ jobs:
5450
with:
5551
java-version: 21
5652
distribution: temurin
57-
- name: Build and release with Gradle
53+
- name: Release with Gradle
5854
run: ./gradlew githubRelease
55+
env:
56+
GITHUB_USER: "TWChennai"
57+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
58+
PRERELEASE: "${{ github.event.inputs.prerelease }}"

0 commit comments

Comments
 (0)