Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,17 @@ jobs:
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

dispatch-rust-sdk-release:
name: Dispatch rust-sdk-release event to spinframework/spin
needs: crates
runs-on: ubuntu-latest
if: github.repository_owner == 'spinframework' && startsWith(github.ref, 'refs/tags/v')
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.SPIN_REPO_PAT }}
repository: spinframework/spin
event-type: rust-sdk-release
client-payload: '{"version": "${{ github.ref_name }}"}'
2 changes: 1 addition & 1 deletion release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ To cut a new release, you will need to do the following:
git push origin v3.1.0
```

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`
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.

7. If applicable, create PR(s) or coordinate [documentation](https://github.com/spinframework/spin-docs) needs, e.g. for new features or updated functionality.