Skip to content

Commit

Permalink
Set up git authentication for Maven releases
Browse files Browse the repository at this point in the history
  • Loading branch information
hprange committed Jan 13, 2021
1 parent fdaa3ba commit 7ec327e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ jobs:
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ github.token }}
5 changes: 5 additions & 0 deletions .maven_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,10 @@
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<webobjects.version>5.4.3</webobjects.version>
<project.scm.id>github</project.scm.id>
</properties>

<build>
Expand Down Expand Up @@ -827,9 +828,8 @@
</distributionManagement>

<scm>
<connection>scm:git:[email protected]:wocommunity/wonder.git</connection>
<url>scm:git:[email protected]:wocommunity/wonder.git</url>
<developerConnection>scm:git:[email protected]:wocommunity/wonder.git</developerConnection>
<tag>HEAD</tag>
<connection>scm:git:https://github.com/wocommunity/wonder.git</connection>
<url>scm:git:https://github.com/wocommunity/wonder.git</url>
<developerConnection>scm:git:https://github.com/wocommunity/wonder.git</developerConnection>
</scm>
</project>

0 comments on commit 7ec327e

Please sign in to comment.