Skip to content

Commit 172dc2a

Browse files
committed
mimic folder structure of WKO for GH documentation pages
1 parent d0f4af5 commit 172dc2a

File tree

166 files changed

+10
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+10
-53
lines changed

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

+10-4
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,32 @@ jobs:
2626

2727
steps:
2828
- name: Checkout main
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
ref: main
3232
path: main
3333

3434
- name: Checkout gh-pages
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636
with:
3737
ref: gh-pages
3838
path: gh-pages
3939
token: ${{ secrets.PUBLISH_SECRET }}
4040

4141
- name: Build and publish site
4242
run: |
43-
curl -fL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v0.82.0/hugo_0.82.0_Linux-64bit.tar.gz"
43+
echo "Downloading Hugo for generating HTML documentation from Markdown"
44+
curl -fL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v0.108.0/hugo_0.108.0_Linux-64bit.tar.gz"
4445
tar -xf hugo.tar.gz
4546
export PATH="$PWD:$PATH"
47+
4648
mkdir $GITHUB_WORKSPACE/WORK
49+
echo "Building HTML documentation for main branch..."
4750
cd $GITHUB_WORKSPACE/main/documentation
48-
./publish.sh -o $GITHUB_WORKSPACE/WORK
51+
# Generate documentation into $GITHUB_WORKSPACE/WORK using Markdown source in the ./site folder
52+
hugo -s site -d "$GITHUB_WORKSPACE/WORK" -b https://oracle.github.io/weblogic-image-tool
53+
54+
echo "Remove existing documentation files and replace them with newly generated files in branch gh-pages"
4955
cd $GITHUB_WORKSPACE/gh-pages
5056
rm -Rf *
5157
cp -R $GITHUB_WORKSPACE/WORK/* .

documentation/publish.sh

-49
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)