Skip to content

Commit bfb6fe5

Browse files
committed
CCM-11751: Package and publish modules to Github
1 parent 03beb48 commit bfb6fe5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/stage-5-publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ jobs:
8484
for module in */; do
8585
module_name=${module%/}
8686
zip -r "../../artifacts/terraform-${module_name}-${{ inputs.version }}.zip" "$module_name"
87-
# Publish to GitHub Packages
87+
# Publish to GitHub Packages using generic packages API
8888
curl \
8989
-X PUT \
9090
-H "Accept: application/vnd.github+json" \
91-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
91+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
9292
-H "Content-Type: application/octet-stream" \
9393
--data-binary "@../../artifacts/terraform-${module_name}-${{ inputs.version }}.zip" \
94-
"https://api.github.com/repos/${{ github.repository }}/packages/terraform/${module_name}/${{ inputs.version }}"
94+
"https://api.github.com/repos/${{ github.repository }}/packages/generic/terraform-${module_name}/${{ inputs.version }}/module.zip"
9595
done
9696
9797
# Remove the old "Upload Terraform modules as release assets" step since we're using packages now

0 commit comments

Comments
 (0)