-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add ability to publish family provider docs for provider-updoc workflow #134
Conversation
3ab8104
to
6aee415
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @turkenf, lgtm. Left some comments for you to consider.
go run github.com/upbound/uptest/cmd/updoc@${{ env.UPTEST_VERSION }} upload --docs-dir=./docs --name=${{ env.PROVIDER_NAME }} --version=${{ env.VER_MAJOR_MINOR }} --bucket-name=bucket-marketplace-docs-production --cdn-domain=https://user-content.upbound.io | ||
for s in $SUBPACKAGES; do | ||
PROVIDER_PACKAGE_NAME="${{ env.PROVIDER_NAME }}-$s" | ||
DOCS_DIR="./docs/family" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: In a future iteration, we may rename the docs/family
folders in the official provider repositories as docs/config
because config
is the name that we use internally for referring to the family's config package. This would further allow us to compute the docs
folder from which to publish the docs as follows:
DOCS_DIR="./docs/${s}"
This would also eliminate the conditionals in this block. It would also make it easy for us to publish specific docs for new resource providers (if this is needed in the future).
2615255
to
e6464da
Compare
Description of your changes
This PR adds the ability to publish family provider docs for
provider-updoc
workflowI have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Manually tested on
turkenf/uptest
andturkenf/provider-gcp
Result of the upload docs step of the updoc workflow triggered in
turkenf/provider-gcp
:Manual publishing for
provider-family-gcp
v0.33.0 family provider: