Skip to content

Commit c703994

Browse files
Update maven-publish.yml
1 parent 32e66bb commit c703994

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/maven-publish.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@ jobs:
1616
packages: write
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v4
20+
21+
2022
- name: Set up JDK 11
21-
uses: actions/setup-java@v4
23+
uses: actions/setup-java@v4
24+
2225
with:
2326
java-version: '11'
2427
distribution: 'temurin'
25-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
26-
settings-path: ${{ github.workspace }} # location for the settings.xml file
28+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
29+
2730

2831
- name: Build with Maven
2932
run: mvn -B package --file pom.xml
3033

3134
- name: Publish to GitHub Packages Apache Maven
32-
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
35+
run: mvn deploy -s ${{ secrets.MAVEN_SETTINGS_XML
36+
3337
env:
34-
GITHUB_TOKEN: ${{ github.token }}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)