File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments