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