Skip to content

Commit

Permalink
mimic folder structure of WKO for GH documentation pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsharpe committed Nov 14, 2023
1 parent d0f4af5 commit 172dc2a
Show file tree
Hide file tree
Showing 166 changed files with 10 additions and 53 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,32 @@ jobs:

steps:
- name: Checkout main
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main
path: main

- name: Checkout gh-pages
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
token: ${{ secrets.PUBLISH_SECRET }}

- name: Build and publish site
run: |
curl -fL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v0.82.0/hugo_0.82.0_Linux-64bit.tar.gz"
echo "Downloading Hugo for generating HTML documentation from Markdown"
curl -fL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v0.108.0/hugo_0.108.0_Linux-64bit.tar.gz"
tar -xf hugo.tar.gz
export PATH="$PWD:$PATH"
mkdir $GITHUB_WORKSPACE/WORK
echo "Building HTML documentation for main branch..."
cd $GITHUB_WORKSPACE/main/documentation
./publish.sh -o $GITHUB_WORKSPACE/WORK
# Generate documentation into $GITHUB_WORKSPACE/WORK using Markdown source in the ./site folder
hugo -s site -d "$GITHUB_WORKSPACE/WORK" -b https://oracle.github.io/weblogic-image-tool
echo "Remove existing documentation files and replace them with newly generated files in branch gh-pages"
cd $GITHUB_WORKSPACE/gh-pages
rm -Rf *
cp -R $GITHUB_WORKSPACE/WORK/* .
Expand Down
49 changes: 0 additions & 49 deletions documentation/publish.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes

0 comments on commit 172dc2a

Please sign in to comment.