Skip to content

Commit a2f25bf

Browse files
committed
feat(go): creating remote package for reusable bindings
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
1 parent 88533c1 commit a2f25bf

File tree

33 files changed

+347
-143
lines changed

33 files changed

+347
-143
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=$(

0 commit comments

Comments
 (0)