Skip to content

Commit

Permalink
Minor fix to doc publishing to GH Pages
Browse files Browse the repository at this point in the history
How embarassing πŸ™ƒ

Signed-off-by: Justin Kulikauskas <[email protected]>
  • Loading branch information
JustinKuli committed Jun 30, 2024
1 parent fc60c2d commit 8ae5669
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ defaults:
run:
shell: bash

permissions:
contents: write
id-token: write
pages: write

jobs:
cleanliness:
name: Run Cleanliness Checks
Expand Down Expand Up @@ -97,15 +102,15 @@ jobs:
sleep 15 # Let it initialize
echo "Downloading the generated doc site"
wget -r -q -np -N -E -p -k 'http://localhost:8080/open-cluster-management.io/[email protected]'
wget -r -q -np -N -E -p -k 'http://localhost:8080/open-cluster-management.io/[email protected]' || true
kill -9 $DOC_PID
echo "Bringing all the files into a gh-pages directory"
mv 'localhost:8080' 'gh-pages'
# Adjust some localhost links
find ./gh-pages -type f -name "*.html" -print0 | \
xargs -0 sed -i 's|localhost:8080/files/workspaces|broken-source-link|g'
xargs -0 sed -i 's|localhost:8080/files|broken-source-link|g'
find ./gh-pages -type f -name "*.html" -print0 | \
xargs -0 sed -i 's|http://localhost:8080|https://pkg.go.dev|g'
Expand Down

0 comments on commit 8ae5669

Please sign in to comment.