Skip to content

Commit 4cf67cc

Browse files
authored
Merge pull request #44 from bytecodealliance/encode-metadata
encode wasm metadata on CI
2 parents 0f069b4 + 0fd47e3 commit 4cf67cc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ on:
88

99
env:
1010
IMAGE_NAME: ${{ github.repository }}
11-
COMPONENT_NAME: sample-wasi-http-rust
1211
CARGO_COMPONENT_VERSION: "0.16.0"
12+
# TODO: These can be removed once https://github.com/bytecodealliance/cargo-component/pull/372 is merged
13+
COMPONENT_NAME: sample-wasi-http-rust
14+
COMPONENT_DESCRIPTION: "A sample WASI HTTP component written in Rust"
15+
COMPONENT_SOURCE: "https://github.com/bytecodealliance/sample-wasi-http-rust"
16+
COMPONENT_HOMEPAGE: "https://github.com/bytecodealliance/sample-wasi-http-rust"
17+
COMPONENT_LICENSES: "Apache-2.0 WITH LLVM-exception"
1318

1419
jobs:
1520
publish:
@@ -76,6 +81,10 @@ jobs:
7681
file: target/wasm32-wasip1/release/rust_wasi_hello.wasm
7782
oci-reference-without-tag: ghcr.io/${{ env.IMAGE_NAME }}/${{ env.COMPONENT_NAME }}
7883
version: ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
84+
description: ${{ env.COMPONENT_DESCRIPTION }}
85+
source: ${{ env.COMPONENT_SOURCE }}
86+
homepage: ${{ env.COMPONENT_HOMEPAGE }}
87+
licenses: ${{ env.COMPONENT_LICENSES }}
7988

8089
- name: Sign the wasm component
8190
if: github.event_name != 'workflow_dispatch'

0 commit comments

Comments
 (0)