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
1 change: 0 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Rust

on:
push:
branches: [ "main" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "main" ]
Expand Down
14 changes: 8 additions & 6 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ as `v0.1.4.0` does not match and the release job fails.

1. On `main`, set `version` in `Cargo.toml` to `x.y.z`. Run a Cargo command
such as `cargo check` so `Cargo.lock` records the same version, then commit
both files and push `main`.
2. Run the automated gates above, or wait until the push to `main` is green.
3. Tag that commit and push only that tag:
both files and push `main`. A direct push to `main` does not start the
workflow. Run the automated gates above locally if you want them before
tagging.
2. Tag that commit and push only that tag:

```powershell
git checkout main
Expand All @@ -66,9 +67,10 @@ git push origin v0.1.4
Replace `0.1.4` with the version you committed. The tag has to point at the
commit that contains that `Cargo.toml` version.

Pushing the tag runs the same validation as a pull request, then the release
job checks the tag against `Cargo.toml` and publishes the already built
artifacts. It does not rebuild or sign them. The GitHub Release receives:
Pushing the tag is the release gate. It runs the same validation as a pull
request. If that passes, the release job checks the tag against `Cargo.toml`
and publishes the already built artifacts. It does not rebuild or sign them.
The GitHub Release receives:

- `windisplaymanager_rs-v0.1.4.exe`
- unsigned `windisplaymanager_rs-0.1.4.0.msix` (the fourth part is always `.0`)
Expand Down
Loading