21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user