just include the settings.xml in the repo

This commit is contained in:
Nick Minkler (Sleaker) 2020-08-02 13:54:10 -07:00
parent 5088e973e0
commit e6ebff536a
2 changed files with 30 additions and 2 deletions

View File

@ -20,8 +20,6 @@ jobs:
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p ~/.m2
echo "<settings><servers><server><id>github</id><username>x-access-token</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
mvn -B javadoc:javadoc deploy
- name: Commit javadocs
run: |

30
.mvn/settings.xml Normal file
View File

@ -0,0 +1,30 @@
<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>github</id>
<name>GitHub Maven Packages</name>
<url>https://maven.pkg.github.com/MilkBowl/github-release/</url>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>MilkBowl</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>