[CI-Skip] [CheckSkip] Fix release numbering & javadocs push

This commit is contained in:
AlphaKR93
2023-03-25 22:53:50 +09:00
parent 418c81b3e7
commit 86a02375df
2 changed files with 3 additions and 3 deletions

View File

@@ -44,9 +44,8 @@ jobs:
- name: Configure Git
run: |
git pull
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]"
echo "release_num=$(git tag | wc -l)" >> $GITHUB_ENV
echo "release_num=$(git ls-remote --tags origin | grep "release" | wc -l)" >> $GITHUB_ENV
- name: Apply Patches
run: ./gradlew applyPatches --stacktrace
@@ -67,7 +66,7 @@ jobs:
(cd Plazma-API/build/docs/javadoc && tar c .) | (cd javadoc && tar xf -)
cd javadoc
git add . && git commit -m "Update Javadocs"
git push https://${{ secrets.GH_PAT }}@github.com/PlazmaMC/Plazma.git
git push -f
- name: Publish Packages
if: github.ref_name == env.MAIN_BRANCH