Skip to content

Commit

Permalink
chore: fix build action
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl committed Nov 14, 2024
1 parent ae0c25d commit 3f353b8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ jobs:
tar -xzvf hugo_extended_0.79.1_Linux-64bit.tar.gz
sudo mv hugo /usr/local/bin/
- name: Prepare Config File
run: (cd docs && make config)

- name: Checkout Docs Repo
uses: actions/checkout@v2
with:
Expand All @@ -56,7 +53,7 @@ jobs:

- name: Build Documentation
run: |
(cd docs && OUTPUT=$(pwd)/docs-output make build)
(cd docs && OUTPUT=$(pwd)/docs-output make docs-build)
- name: Commit and Push Changes to Docs Repo
working-directory: docs-output
Expand All @@ -83,12 +80,9 @@ jobs:
# Ensure the latest changes are pulled
git pull origin main
# Prepare Config for Main Branch Docs
(cd docs && make config)
# Build Docs for Main Branch (latest)
(cd docs && OUTPUT=$(pwd)/docs-output VERSION="latest" BRANCH="main" make build)
(cd docs && OUTPUT=$(pwd)/docs-output VERSION="latest" BRANCH="main" make docs-build)
# Commit and Push Latest Docs to Main
cd docs-output
Expand Down

0 comments on commit 3f353b8

Please sign in to comment.