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

Fix the value of the PROVIDER_PACKAGE_NAME env. variable for updoc #199

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ jobs:
if: needs.detect-noop.outputs.noop != 'true'

steps:
- name: Cleanup Disk
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
android: true
dotnet: true
haskell: true
tool-cache: true
large-packages: false
swap-storage: false

- name: Setup QEMU
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2
with:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/provider-updoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,21 @@ jobs:
- name: Upload Docs
env:
GOOGLE_APPLICATION_CREDENTIALS: sa.json
PROVIDER_NAME: ${GITHUB_REPOSITORY#*/}
VER_MAJOR_MINOR: v${GITHUB_REF#"refs/heads/release-"}
SUBPACKAGES: ${{ inputs.providers }}
run: |
if [[ "${GITHUB_REF##*/}" == release-* ]]; then
for s in $SUBPACKAGES; do
PROVIDER_PACKAGE_NAME="${PROVIDER_NAME/-upjet/}-$s"
PROVIDER_PACKAGE_NAME="provider-${GITHUB_REPOSITORY##*-}-${s}"
DOCS_DIR="./docs/family"
if [ $s == 'monolith' ]; then
PROVIDER_PACKAGE_NAME="${PROVIDER_NAME/-upjet/}"
PROVIDER_PACKAGE_NAME="provider-${GITHUB_REPOSITORY##*-}"
DOCS_DIR="./docs/monolith"
elif [ $s == 'config' ]; then
PROVIDER_PACKAGE_NAME="provider-family-${GITHUB_REPOSITORY##*-}"
DOCS_DIR="./docs/family"
fi
echo "Publishing Docs for $PROVIDER_PACKAGE_NAME, ${{ env.VER_MAJOR_MINOR }} from $DOCS_DIR"
echo "Publishing Docs for ${PROVIDER_PACKAGE_NAME}, ${{ env.VER_MAJOR_MINOR }} from $DOCS_DIR"
go run github.com/upbound/uptest/cmd/updoc@${{ env.UPTEST_VERSION }} upload --docs-dir="${DOCS_DIR}" --name="${PROVIDER_PACKAGE_NAME}" --version=${{ env.VER_MAJOR_MINOR }} --bucket-name=bucket-marketplace-docs-production --cdn-domain=https://user-content.upbound.io
done
else
Expand Down
Loading