Skip to content

Commit

Permalink
Try to add token to settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
noemide committed Aug 5, 2020
1 parent f03ff8b commit ef8bbbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<server>
<id>github</id>
<username>noemide</username>
<password>$MODEL_PKG_TOKEN</password>
<password>SECRET</password>
</server>
</servers>
</settings>
4 changes: 3 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file


- name: Replace secret
run: sed -i 's/SECRET/${GITHUB_PKG_TOKEN}/g' $GITHUB_WORKSPACE/.github/settings.xml
- name: Build with Maven
run: mvn -B package --file pom.xml -s $GITHUB_WORKSPACE/.github/settings.xml

Expand Down

0 comments on commit ef8bbbf

Please sign in to comment.