Skip to content

Commit 4b03da5

Browse files
Merge pull request #84 from fibonacci1729/sdk-release-dispatch
Dispatch release event
2 parents f0e0364 + e7dd744 commit 4b03da5

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,17 @@ jobs:
4343
run: cargo publish
4444
env:
4545
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
46+
47+
dispatch-rust-sdk-release:
48+
name: Dispatch rust-sdk-release event to spinframework/spin
49+
needs: crates
50+
runs-on: ubuntu-latest
51+
if: github.repository_owner == 'spinframework' && startsWith(github.ref, 'refs/tags/v')
52+
steps:
53+
- name: Repository Dispatch
54+
uses: peter-evans/repository-dispatch@v3
55+
with:
56+
token: ${{ secrets.SPIN_REPO_PAT }}
57+
repository: spinframework/spin
58+
event-type: rust-sdk-release
59+
client-payload: '{"version": "${{ github.ref_name }}"}'

release-process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ To cut a new release, you will need to do the following:
2222
git push origin v3.1.0
2323
```
2424
25-
6. Pushing the tag upstream will trigger the [release action](https://github.com/spinframework/spin-rust-sdk/actions/workflows/release.yml) which publishes the crates in this workspace to `crates.io`
25+
6. Pushing the tag upstream will trigger the [release action](https://github.com/spinframework/spin-rust-sdk/actions/workflows/release.yml) which publishes the crates in this workspace to `crates.io` and dispatches an `rust-sdk-release` event to the `spinframework/spin` repository. This event will trigger an action that updates the rust template's sdk dependency.
2626
2727
7. If applicable, create PR(s) or coordinate [documentation](https://github.com/spinframework/spin-docs) needs, e.g. for new features or updated functionality.

0 commit comments

Comments
 (0)