diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 22a66a3..a178585 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -75,12 +75,15 @@ jobs: - name: Build the component run: cargo component build --release + - name: Normalize COMPONENT_NAME and Append .wasm + run: echo "COMPONENT_NAME_UNDERSCORED=${COMPONENT_NAME//-/_}.wasm" >> $GITHUB_ENV + - name: Publish to GitHub Container Registry if: github.event_name != 'workflow_dispatch' id: publish uses: bytecodealliance/wkg-github-action@v5 with: - file: target/wasm32-wasip1/release/${{ env.COMPONENT_NAME }} + file: target/wasm32-wasip1/release/${{ env.COMPONENT_NAME_UNDERSCORED }} oci-reference-without-tag: ghcr.io/${{ env.IMAGE_NAME }}/${{ env.COMPONENT_NAME }} version: ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }} description: ${{ env.COMPONENT_DESCRIPTION }}