Skip to content
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
2 changes: 2 additions & 0 deletions .github/workflows/providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ jobs:
echo "Publishing $pkg to gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/"
gsutil -m cp -c dist/${pkg}*.xz gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/
gsutil -m cp -c dist/${pkg}_SHA256SUMS gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/
gsutil -m cp -c dist/${pkg}_schema.json gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/schema.json
gsutil -m cp -c dist/${pkg}_provider.json gs://${BUCKET}/providers/${PROVIDER}/${VERSION}/provider.json
done

- name: "Save Artifacts"
Expand Down
7 changes: 6 additions & 1 deletion scripts/provider_bundler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,15 @@ if [ $FAILED -ne 0 ]; then
exit 1
fi

# Copy schema files to bundle dist for publishing
echo " - Copying schema files..."
cp ${PROVIDER_DIST}/${PROVIDER_NAME}.resources.json ${BUNDLE_DIST}/${PROVIDER_NAME}_${PROVIDER_VERSION}_schema.json
cp ${PROVIDER_DIST}/${PROVIDER_NAME}.json ${BUNDLE_DIST}/${PROVIDER_NAME}_${PROVIDER_VERSION}_provider.json

# Generate SHA256 checksums
echo " - Generating SHA256 checksums..."
cd $BUNDLE_DIST
shasum -a 256 ${PROVIDER_NAME}_${PROVIDER_VERSION}_*.xz > ${PROVIDER_NAME}_${PROVIDER_VERSION}_SHA256SUMS
shasum -a 256 ${PROVIDER_NAME}_${PROVIDER_VERSION}_*.xz ${PROVIDER_NAME}_${PROVIDER_VERSION}_schema.json ${PROVIDER_NAME}_${PROVIDER_VERSION}_provider.json > ${PROVIDER_NAME}_${PROVIDER_VERSION}_SHA256SUMS

printf "\n\n"
echo " The ${PROVIDER_NAME} provider has been built and bundled successfully."
Expand Down
Loading