Skip to content

Commit

Permalink
Merge pull request #212 from FIUS/fixDeployAction
Browse files Browse the repository at this point in the history
Fix deploy action
  • Loading branch information
graefjk authored Jan 3, 2024
2 parents c319bdb + b49e2cb commit e5a7083
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/releaseToGithubPackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ jobs:
- name: Publish package
run: ./mvnw -s "${{ github.workspace }}/scriptsAndTools/internalOrCiOnly/deploySettings.xml" deploy -Dgithub.user=$GITHUB_USER -Dgithub.token=$GITHUB_TOKEN
env:
GITHUB_USER: ${{ secrets.MAVEN_REPO_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USER: ${{ secrets.MAVEN_REPO_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

37 changes: 37 additions & 0 deletions scriptsAndTools/internalOrCiOnly/deploySettings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<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">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/OWNER/REPOSITORY</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>${github.user}</username>
<password>${github.token}</password>
</server>
</servers>
</settings>

0 comments on commit e5a7083

Please sign in to comment.