Skip to content

Commit fd61703

Browse files
committed
Publish a :latest tag
1 parent 6012dee commit fd61703

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Normalize COMPONENT_NAME and Append .wasm
8080
run: echo "COMPONENT_NAME_UNDERSCORED=${COMPONENT_NAME//-/_}.wasm" >> $GITHUB_ENV
8181

82-
- name: Publish to GitHub Container Registry
82+
- name: Publish `:<version>` to GitHub Container Registry
8383
if: github.event_name != 'workflow_dispatch'
8484
id: publish
8585
uses: bytecodealliance/wkg-github-action@v5
@@ -92,6 +92,19 @@ jobs:
9292
homepage: ${{ env.COMPONENT_HOMEPAGE }}
9393
licenses: ${{ env.COMPONENT_LICENSES }}
9494

95+
- name: Publish `:latest` release to GitHub Container Registry
96+
if: github.event_name != 'workflow_dispatch'
97+
id: publish
98+
uses: bytecodealliance/wkg-github-action@v5
99+
with:
100+
file: target/wasm32-wasip1/release/${{ env.COMPONENT_NAME_UNDERSCORED }}
101+
oci-reference-without-tag: ghcr.io/${{ env.IMAGE_NAME }}/${{ env.COMPONENT_NAME }}
102+
version: latest
103+
description: ${{ env.COMPONENT_DESCRIPTION }}
104+
source: ${{ env.COMPONENT_SOURCE }}
105+
homepage: ${{ env.COMPONENT_HOMEPAGE }}
106+
licenses: ${{ env.COMPONENT_LICENSES }}
107+
95108
- name: Sign the wasm component
96109
if: github.event_name != 'workflow_dispatch'
97110
run: cosign sign --yes ghcr.io/${{ env.IMAGE_NAME }}/${{ env.COMPONENT_NAME }}@${{ steps.publish.outputs.digest }}

0 commit comments

Comments
 (0)