Skip to content

Commit b4bf93f

Browse files
committed
Stop generating older 4.2 documentation
1 parent d978e0f commit b4bf93f

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ jobs:
3232
ref: main
3333
path: branch-main
3434

35-
- name: Checkout 4.2 branch
36-
uses: actions/checkout@v6
37-
with:
38-
fetch-depth: 32
39-
ref: release/4.2
40-
path: branch-4.2
41-
4235
- name: Checkout gh-pages
4336
uses: actions/checkout@v6
4437
with:
@@ -63,20 +56,11 @@ jobs:
6356
cat $GITHUB_WORKSPACE/branch-main/documentation/site/layouts/shortcodes/latestVersion.html
6457
hugo -s site -d "$GITHUB_WORKSPACE/WORK" -b https://oracle.github.io/weblogic-kubernetes-operator
6558
66-
cd $GITHUB_WORKSPACE/branch-4.2/documentation
67-
echo "Building 4.2 documentation..."
68-
latest_42_tag=$(git ls-remote https://github.com/oracle/weblogic-kubernetes-operator.git --h --sort origin "refs/tags/v*" | cut -f2 | grep v4.2 | cut -c12- | sort --version-sort | tail -1)
69-
echo "Latest 4.2 tag is $latest_42_tag..."
70-
echo $latest_42_tag >| $GITHUB_WORKSPACE/branch-4.2/documentation/site/layouts/shortcodes/latestVersion.html
71-
cat $GITHUB_WORKSPACE/branch-4.2/documentation/site/layouts/shortcodes/latestVersion.html
72-
hugo -s site -d "$GITHUB_WORKSPACE/WORK/4.2" -b https://oracle.github.io/weblogic-kubernetes-operator/4.2
73-
7459
echo "Copying static files into place..."
7560
cp -R domains "$GITHUB_WORKSPACE/WORK"
7661
7762
cd $GITHUB_WORKSPACE/gh-pages
7863
find . -maxdepth 1 -mindepth 1 -not -name '[0-9]*' -not -name '.git*' -exec rm -Rf {} \;
79-
rm -Rf 4.2
8064
8165
cp -R $GITHUB_WORKSPACE/WORK/* .
8266
git config --global user.name "github-actions[bot]"

documentation/site/content/_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ See the [Release Notes](https://github.com/oracle/weblogic-kubernetes-operator/r
4646
As of November 2024, version 3.4.x of the WebLogic Kubernetes Operator is no longer supported.
4747
{{% /notice %}}
4848

49-
Documentation for prior releases of the operator: [3.4](https://oracle.github.io/weblogic-kubernetes-operator/3.4/), [4.0](https://oracle.github.io/weblogic-kubernetes-operator/4.0/), [4.1](https://oracle.github.io/weblogic-kubernetes-operator/4.1/), and [4.2](https://oracle.github.io/weblogic-kubernetes-operator/4.2/).
50-
5149
#### Backward compatibility guidelines
5250

5351
Starting from the 2.0.1 release, operator releases are backward compatible with respect to the domain

0 commit comments

Comments
 (0)