Skip to content

Commit 0d6a753

Browse files
asteurerdicej
andauthored
feat(go): creating remote package for reusable bindings (#1485)
* feat(go): creating remote package for reusable bindings Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com> * remove no-longer-used Go::need_async field * fix: update gitignore Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com> --------- Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com> Co-authored-by: Joel Dice <joel.dice@fermyon.com>
1 parent 88533c1 commit 0d6a753

File tree

33 files changed

+335
-148
lines changed

33 files changed

+335
-148
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@ jobs:
5959
EOF
6060
if: steps.tag.outputs.push_tag == 'yes'
6161

62+
- name: Push Go package tag
63+
run: |
64+
git_refs_url=$(jq .repository.git_refs_url $GITHUB_EVENT_PATH | tr -d '"' | sed 's/{\/sha}//g')
65+
curl -iX POST $git_refs_url \
66+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
67+
-d @- << EOF
68+
{
69+
"ref": "refs/tags/crates/go/src/package/v${{ steps.tag.outputs.version }}",
70+
"sha": "${{ steps.tag.outputs.sha }}"
71+
}
72+
EOF
73+
if: steps.tag.outputs.push_tag == 'yes'
74+
75+
6276
- run: |
6377
sha=${{ github.sha }}
6478
run_id=$(

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ ace
88
!wasi_snapshot_preview1.reactor.wasm
99
__pycache__
1010
crates/guest-rust/src/cabi_realloc.o
11+
wit_component

0 commit comments

Comments
 (0)