Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust build-docs/action to make /docs dir if it doesn't exist #42

Merged
merged 8 commits into from
Jul 16, 2024
12 changes: 11 additions & 1 deletion .github/actions/build-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ runs:
using: 'composite'
steps:
- name: Write html file to docs directory
shell: bash
run: |
# Check if the ./docs directory exists
if [ -d "./docs" ]; then
echo "Directory ./docs exists."
else
echo "Directory ./docs does not exist. Creating it now..."
mkdir ./docs
fi

# Run the godoc command
godoc -url pkg/github.com/pinecone-io/go-pinecone/pinecone/ > ./docs/index.html
shell: bash
echo "godoc command has been executed and the output has been saved to ./docs/index.html"
Loading