Skip to content

Commit

Permalink
Fix the value of the PROVIDER_PACKAGE_NAME env. variable for updoc
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
(cherry picked from commit b62f8d3)
  • Loading branch information
ulucinar committed Mar 21, 2024
1 parent af5d22a commit 52b72a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
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

0 comments on commit 52b72a7

Please sign in to comment.