-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nicklas Körtge <[email protected]>
- Loading branch information
1 parent
cf2285c
commit 040f714
Showing
1 changed file
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,15 +41,20 @@ jobs: | |
java-version: '17' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: maven-settings-action | ||
uses: s4u/[email protected] | ||
with: | ||
servers: | | ||
[{ | ||
"id": "github", | ||
"username": "${{ github.actor }}", | ||
"password": "${{ secrets.GITHUB_TOKEN }}" | ||
}] | ||
- name: Create Maven settings.xml | ||
run: | | ||
echo "<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\" | ||
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | ||
xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0 | ||
http://maven.apache.org/xsd/settings-1.0.0.xsd\"> | ||
<servers> | ||
<server> | ||
<id>github</id> | ||
<username>${{ github.actor }}</username> | ||
<password>${{ secrets.GITHUB_TOKEN }}</password> | ||
</server> | ||
</servers> | ||
</settings>" > ~/.m2/settings.xml | ||
- name: Build with Maven | ||
run: mvn clean package | ||
env: | ||
|