Skip to content

Commit ef16974

Browse files
committed
feat: make package public in cd
1 parent 4f0abfa commit ef16974

File tree

11 files changed

+5
-856
lines changed

11 files changed

+5
-856
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
needs: detect-changes
3131
if: ${{ fromJson(needs.detect-changes.outputs.matrix).component != '[]' }}
3232
runs-on: ubuntu-latest
33+
env:
34+
GH_TOKEN: ${{ github.token }}
3335
strategy:
3436
matrix:
3537
component: ${{ fromJson(needs.detect-changes.outputs.matrix).component }}
@@ -55,9 +57,4 @@ jobs:
5557
cargo component publish -p ${{ matrix.component }} --config config.toml
5658
5759
# Make package public
58-
- run: |
59-
curl -X PATCH \
60-
-H "Accept: application/vnd.github.v3+json" \
61-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
62-
https://api.github.com/orgs/wassemble/packages/container/${{ matrix.component }}/visibility \
63-
-d '{"visibility":"public"}'
60+
- run: gh api --method PATCH /orgs/wassemble/packages/container/${{ matrix.component }} -f visibility=public

crates/discord/Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,3 @@ crate-type = ["cdylib"]
1414

1515
[package.metadata.component]
1616
package = "wassemble:discord"
17-
18-
[package.metadata.component.target.dependencies]
19-
"wasi:cli" = { path = "./wit/deps/wasi-cli-0.2.5" }
20-
"wasi:clocks" = { path = "./wit/deps/wasi-clocks-0.2.5" }
21-
"wasi:http" = { path = "./wit/deps/wasi-http-0.2.5" }
22-
"wasi:io" = { path = "./wit/deps/wasi-io-0.2.5" }
23-
"wasi:random" = { path = "./wit/deps/wasi-random-0.2.5" }

crates/discord/wit/deps/wasi-cli-0.2.5/package.wit

Lines changed: 0 additions & 20 deletions
This file was deleted.

crates/discord/wit/deps/wasi-clocks-0.2.5/package.wit

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)