-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
Rather than manuallyu execute a script for tagging ghcr packages at release time, this can be more reliably automated in a github action that's triggered on release. This new github action simply calls the previous release-helper script support that is in place. Signed-off-by: Chris Porter <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Publish ghcr packages on trustee release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-ghcr-packages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run release-helper-ghcr to tag ghcr release packages | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
GH_USERNAME: ${{ github.actor }} | ||
GH_SHA: ${{ github.sha }} | ||
run: | | ||
Check failure on line 19 in .github/workflows/publish-ghcr-pkgs-on-release.yml GitHub Actions / Workflow Files
Check failure on line 19 in .github/workflows/publish-ghcr-pkgs-on-release.yml GitHub Actions / Workflow Files
Check failure on line 19 in .github/workflows/publish-ghcr-pkgs-on-release.yml GitHub Actions / Workflow Files
Check failure on line 19 in .github/workflows/publish-ghcr-pkgs-on-release.yml GitHub Actions / Workflow Files
Check failure on line 19 in .github/workflows/publish-ghcr-pkgs-on-release.yml GitHub Actions / Workflow Files
Check failure on line 19 in .github/workflows/publish-ghcr-pkgs-on-release.yml GitHub Actions / Workflow Files
|
||
tag=$(echo $GITHUB_REF | sed 's|refs/tags/||') | ||
cd hack | ||
./release-helper-ghcr.sh -u $GH_USERNAME -k $GH_TOKEN -c $GH_SHA -r $tag |