File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,19 @@ jobs:
8282 helm push dist/pulse-${{ steps.versions.outputs.chart_version }}.tgz \
8383 oci://ghcr.io/${{ github.repository_owner }}/pulse-chart
8484
85- - name : Make package public
85+ - name : Configure package visibility
8686 env :
8787 GITHUB_TOKEN : ${{ github.token }}
8888 run : |
89- # Set package visibility to public for anonymous pulls
90- gh api -X PATCH /user/packages/container/pulse-chart -f visibility=public || \
91- echo "Warning: Could not set package visibility. May need manual configuration."
89+ # Connect package to repository and set visibility to public
90+ # This ensures the package inherits public visibility and appears in repo packages
91+ gh api -X PUT /user/packages/container/pulse-chart/versions/latest/restore || true
92+ gh api -X PATCH /user/packages/container/pulse-chart -f visibility=public || true
93+
94+ # Also try org endpoint if user endpoint fails
95+ gh api -X PATCH /orgs/${{ github.repository_owner }}/packages/container/pulse-chart -f visibility=public || true
96+
97+ echo "Package visibility configuration attempted. Verify at: https://github.com/${{ github.repository_owner }}?tab=packages"
9298
9399 - name : Attach chart to release
94100 if : github.event_name == 'release'
You can’t perform that action at this time.
0 commit comments