-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Skylar Simoncelli
committed
Oct 23, 2024
1 parent
7c3a132
commit 9f3cb2e
Showing
2 changed files
with
65 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Publish the draft release created by cd.yml, and upload GHCR image | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
sha: | ||
description: 'The SHA of the commit to build' | ||
required: true | ||
type: string | ||
tag: | ||
description: 'The tag for the release' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-and-publish-ghcr: | ||
permissions: | ||
id-token: write | ||
contents: write | ||
packages: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build and Publish to GHCR | ||
uses: ./.github/actions/images/build-and-publish-ghcr | ||
with: | ||
sha: ${{ inputs.sha }} | ||
tag: ${{ inputs.tag }} | ||
env: | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
publish-release: | ||
permissions: | ||
id-token: write | ||
contents: write | ||
packages: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Publish Release | ||
uses: ./.github/actions/release/publish-draft-release | ||
with: | ||
tag: ${{ inputs.tag }} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} |