fix(release): 容器发布 - 保持自部署镜像公开可拉取

This commit is contained in:
ddCat
2026-08-30 22:29:16 +08:00
parent 694cb974fb
commit 18dcfa95a3

View File

@@ -80,6 +80,16 @@ jobs:
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,mode=max,scope=${{ matrix.image }}
- name: Keep deployment image public
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
gh api \
--method PATCH \
"/orgs/${{ github.repository_owner }}/packages/container/${{ matrix.image }}" \
-f visibility=public
release:
name: Publish release assets
if: startsWith(github.ref, 'refs/tags/v')