mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2024-11-22 10:25:44 +01:00
try recommendations for getting publish to work
This commit is contained in:
parent
274d110b51
commit
da54503395
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -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
|
||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user