Skip to content

Commit afe1789

Browse files
committed
build: fix prepare release
- Enable maven cache for release workflows - Set GitHub credentials for `maven release:prepare` action
1 parent 98dc1e8 commit afe1789

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.github/workflows/prepare_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
distribution: 'zulu'
2626
java-version: '8'
27+
cache: 'maven'
2728
server-id: central
2829
server-username: MAVEN_USERNAME
2930
server-password: MAVEN_TOKEN
@@ -35,6 +36,8 @@ jobs:
3536
3637
- name: Run release release.yml
3738
env:
39+
GITHUB_ACTOR: ${{ github.actor }}
40+
GITHUB_TOKEN: ${{ github.token }}
3841
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USER }}
3942
MAVEN_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
4043
RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
with:
1818
distribution: 'zulu'
1919
java-version: '8'
20+
cache: 'maven'
2021
server-id: central
2122
server-username: MAVEN_USERNAME
2223
server-password: MAVEN_TOKEN

.github/workflows/snapshot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
with:
2020
distribution: 'zulu'
2121
java-version: '8'
22+
cache: 'maven'
2223
server-id: central-portal-snapshots
2324
server-username: MAVEN_USERNAME
2425
server-password: MAVEN_TOKEN

0 commit comments

Comments
 (0)