File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77# install wkg
88git clone https://github.com/bytecodealliance/wasm-pkg-tools
9- cd wasm-pkg-tools
9+ cd wasm-pkg-tools/crates/wkg
1010cargo install --path .
11+ cd ../../../../
1112
1213# login to the registry
13- gh auth token | docker login ghcr.io --username yoshuawuyts --password-stdin
14+ # if running locally, we may need to:
15+ # gh auth refresh -h github.com -s write:packages,read:packages
16+ gh auth token | docker login ghcr.io --username YOURUSERNAME --password-stdin
1417
1518# publish using wkg
1619PROJECT_NAME=" rust_wasi_hello"
17- REGISTRY_REFERENCE=" ghcr.io/yoshuawuyts/rust-wasi-hello:latest"
20+ GH_USER=$( gh api user --jq ' .login' )
21+ REGISTRY_REFERENCE=" ghcr.io/${GH_USER} /rust-wasi-hello:latest"
22+
1823wkg oci push $REGISTRY_REFERENCE target/wasm32-wasip1/release/$PROJECT_NAME .wasm
You can’t perform that action at this time.
0 commit comments