Update release.yml

Signed-off-by: Alpha <dev@alpha93.kr>
This commit is contained in:
Alpha
2024-11-02 18:34:13 +09:00
committed by GitHub
parent 8889a877d6
commit ae94d43098

View File

@@ -81,7 +81,7 @@ jobs:
- name: Create Mojmap Jar
run: ./gradlew createMojmapPaperclipJar --stacktrace
- name: Update sources
- name: Update Sources
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
run: |
cd Plazma-Server
@@ -97,7 +97,7 @@ jobs:
cd ..
if [ ! -d "javadoc" ]; then
SUBMODULE_ADD=true
echo "SUBMODULE_ADD=true" >> $GITHUB_ENV
mkdir javadoc && cd javadoc
git init && git branch -m ${{ env.VERSION }}
cd ..
@@ -107,13 +107,6 @@ jobs:
cd javadoc
git add . && git commit -m "Update Javadocs"
cd ../jdmain
if [ $SUBMODULE_ADD = true ]; then
git submodule add -b ${{ env.VERSION }} https://github.com/PlazmaMC/Javadocs ${{ env.VERSION }}
fi
git submodule update
git add . && git commit -m "Update Javadocs"
- name: Push source changes (API)
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
uses: ad-m/github-push-action@master
@@ -144,6 +137,16 @@ jobs:
github_token: ${{ secrets.GH_PAT }}
force: true
- name: Update Javadocs
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
run: |
cd jdmain
if [ "${{ env.SUBMODULE_ADD }}" = "true" ]; then
git submodule add -b ${{ env.VERSION }} https://github.com/PlazmaMC/Javadocs ${{ env.VERSION }}
fi
git submodule update
git add . && git commit -m "Update Javadocs"
- name: Push source changes (jd portal)
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
uses: ad-m/github-push-action@master