Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Alpha <[email protected]>
  • Loading branch information
AlphaKR93 authored Nov 2, 2024
1 parent d975ace commit 54dfd71
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,6 @@ jobs:
git commit --fixup $(git rev-list -n 1 base)
git rebase --autosquash upstream/master
cd ..
if [ ! -d "javadoc" ]; then
mkdir javadoc && cd javadoc
git init && git branch -m ${{ env.VERSION }}
cd ..
fi
cp -rf Plazma-API/build/docs/javadoc/* javadoc/
cd javadoc
git add . && git commit -m "Update Javadocs"
- name: Push source changes (API)
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
Expand All @@ -126,6 +116,19 @@ jobs:
github_token: ${{ secrets.GH_PAT }}
force: true

- name: Update Javadoc
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
run: |
if [ ! -d "javadoc" ]; then
mkdir javadoc && cd javadoc
git init && git branch -m ${{ env.VERSION }}
cd ..
fi
cp -rf Plazma-API/build/docs/javadoc/* javadoc/
cd javadoc
git add . && git commit -m "Update Javadocs"
- name: Push source changes (javadoc)
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
uses: ad-m/github-push-action@master
Expand All @@ -136,7 +139,7 @@ jobs:
github_token: ${{ secrets.GH_PAT }}
force: true

- name: Update Javadocs
- name: Sync Javadocs Portal
if: startsWith(github.ref_name, 'ver/') || startsWith(github.ref_name, 'dev/')
run: |
cd jdmain
Expand Down

0 comments on commit 54dfd71

Please sign in to comment.