Skip to content

Commit 8fa2d67

Browse files
committed
Stop building documentation for 3.4, 4.1
1 parent a98f813 commit 8fa2d67

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

.github/workflows/publish-gh-pages.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,6 @@ jobs:
2727
ref: release/4.2
2828
path: branch-4.2
2929

30-
- name: Checkout branch
31-
uses: actions/checkout@v4
32-
with:
33-
fetch-depth: 32
34-
ref: release/4.1
35-
path: branch-4.1
36-
37-
- name: Checkout branch
38-
uses: actions/checkout@v4
39-
with:
40-
fetch-depth: 32
41-
ref: release/3.4
42-
path: branch-3.4
43-
4430
- name: Checkout gh-pages
4531
uses: actions/checkout@v4
4632
with:
@@ -67,21 +53,8 @@ jobs:
6753
echo "Copying static files into place..."
6854
cp -R domains "$GITHUB_WORKSPACE/WORK"
6955
70-
cd $GITHUB_WORKSPACE/branch-4.1/documentation
71-
echo "Building documentation for 4.1 minor version..."
72-
latest_41_tag=$(git ls-remote https://github.com/oracle/weblogic-kubernetes-operator.git --h --sort origin "refs/tags/v*" | cut -f2 | grep v4.1 | tail -1 | cut -c12-)
73-
echo "Latest tag is $latest_41_tag..."
74-
echo $latest_41_tag >| $GITHUB_WORKSPACE/branch-4.1/documentation/site/layouts/shortcodes/latestVersion.html
75-
cat $GITHUB_WORKSPACE/branch-4.1/documentation/site/layouts/shortcodes/latestVersion.html
76-
hugo -s site -d "$GITHUB_WORKSPACE/WORK/4.1" -b https://oracle.github.io/weblogic-kubernetes-operator/4.1
77-
78-
cd $GITHUB_WORKSPACE/branch-3.4/documentation
79-
echo "Building documentation for 3.4 minor version..."
80-
hugo -s site -d "$GITHUB_WORKSPACE/WORK/3.4" -b https://oracle.github.io/weblogic-kubernetes-operator/3.4
81-
8256
cd $GITHUB_WORKSPACE/gh-pages
8357
find . -maxdepth 1 -mindepth 1 -not -name '[0-9]*' -not -name '.git*' -exec rm -Rf {} \;
84-
rm -Rf 3.4 4.1
8558
8659
cp -R $GITHUB_WORKSPACE/WORK/* .
8760
git config --global user.name "github-actions[bot]"

0 commit comments

Comments
 (0)