try recommendations for getting publish to work

This commit is contained in:
Nick Minkler (Sleaker) 2020-08-02 13:35:09 -07:00
parent 274d110b51
commit da54503395
2 changed files with 6 additions and 3 deletions

View File

@ -17,9 +17,12 @@ jobs:
with:
java-version: 1.8
- name: Build and publish package
run: mvn -B javadoc:javadoc javadoc:jar deploy
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir ~/.m2
echo "<settings><servers><server><id>github</id><username>MilkBowl</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
mvn -B javadoc:javadoc deploy
- name: Commit javadocs
run: |
git config --local user.email "action@github.com"
@ -27,7 +30,7 @@ jobs:
cp -Rfv target/javadoc-latest/* gh-pages/
cd gh-pages
commit -m "Update javadoc pages for latest release" -a
- name: Push changes
- name: Push javadoc changes
uses: ad-m/github-push-action@master
with:
branch: gh-pages

View File

@ -50,7 +50,7 @@ Vault currently supports the following: Permissions 3, PEX, GroupManager, bPerms
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Milkbowl/VaultAPI</url>
<url>https://maven.pkg.github.com/Milkbowl/github-release/</url>
</repository>
</distributionManagement>