mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2025-02-16 20:11:26 +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:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
- name: Build and publish package
|
- name: Build and publish package
|
||||||
run: mvn -B javadoc:javadoc javadoc:jar deploy
|
|
||||||
env:
|
env:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
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
|
- name: Commit javadocs
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
@ -27,7 +30,7 @@ jobs:
|
|||||||
cp -Rfv target/javadoc-latest/* gh-pages/
|
cp -Rfv target/javadoc-latest/* gh-pages/
|
||||||
cd gh-pages
|
cd gh-pages
|
||||||
commit -m "Update javadoc pages for latest release" -a
|
commit -m "Update javadoc pages for latest release" -a
|
||||||
- name: Push changes
|
- name: Push javadoc changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
|
2
pom.xml
2
pom.xml
@ -50,7 +50,7 @@ Vault currently supports the following: Permissions 3, PEX, GroupManager, bPerms
|
|||||||
<repository>
|
<repository>
|
||||||
<id>github</id>
|
<id>github</id>
|
||||||
<name>GitHub Packages</name>
|
<name>GitHub Packages</name>
|
||||||
<url>https://maven.pkg.github.com/Milkbowl/VaultAPI</url>
|
<url>https://maven.pkg.github.com/Milkbowl/github-release/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user