File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,15 @@ jobs:
7575 - name : Build the component
7676 run : cargo component build --release
7777
78+ - name : Normalize COMPONENT_NAME and Append .wasm
79+ run : echo "COMPONENT_NAME_UNDERSCORED=${COMPONENT_NAME//-/_}.wasm" >> $GITHUB_ENV
80+
7881 - name : Publish to GitHub Container Registry
7982 if : github.event_name != 'workflow_dispatch'
8083 id : publish
8184 uses : bytecodealliance/wkg-github-action@v5
8285 with :
83- file : target/wasm32-wasip1/release/${{ env.COMPONENT_NAME }}
86+ file : target/wasm32-wasip1/release/${{ env.COMPONENT_NAME_UNDERSCORED }}
8487 oci-reference-without-tag : ghcr.io/${{ env.IMAGE_NAME }}/${{ env.COMPONENT_NAME }}
8588 version : ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
8689 description : ${{ env.COMPONENT_DESCRIPTION }}
You can’t perform that action at this time.
0 commit comments