Skip to content

Commit f3031b6

Browse files
authored
Merge pull request #19 from com-pas/develop
Merge branch 'develop' into main
2 parents 35212d3 + 5a9e2cc commit f3031b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release-project.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ jobs:
2626
with:
2727
distribution: 'zulu'
2828
java-version: '11'
29+
- name: Create custom Maven Settings.xml
30+
uses: whelk-io/maven-settings-xml-action@v18
31+
with:
32+
output_file: custom_maven_settings.xml
33+
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
2934
- name: Set version with Maven
3035
run: ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
3136
env:
3237
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3338
- name: Deploy with Maven to GitHub Packages
34-
run: ./mvnw -B -Prelease clean deploy
39+
run: ./mvnw -B -s custom_maven_settings.xml -Prelease clean deploy
3540
env:
3641
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)