You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mat-vis (`MorePET/mat-vis`) has two workflow patterns worth borrowing for our future manual release / promotion workflows:
`workflow_dispatch` with a `dry-run` boolean input. Their `promote-data-release.yml` accepts a `dry-run` flag that runs validation steps without performing the action. Cheap safety rail.
Documented workflow headers. Their workflow files start with a clear comment block (Flow / Trigger / Inputs sections) instead of just the name. Makes the file's purpose obvious without reading the YAML.
Reference: see `promote-data-release.yml`, `bake.yml`, `pypi.yml` in MorePET/mat-vis.
When this applies here
When `CRATES_IO_PUBLISH_ENABLED` flips on (ci: enable rs-materials crates.io publishing #43): the first crates.io publish workflow run benefits from a dry-run option to validate the token + crate metadata without actually publishing.
Future catalog/thumbnail asset releases (if we ever ship those as GH Release assets, parallel to the wheel).
```yaml
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Validate without acting'
required: false
default: false
type: boolean
```
And the header style:
```yaml
<Workflow purpose — one sentence>
Flow:
1. ...
2. ...
Trigger:
Inputs:
```
Not adopting
mat-vis's manual version-tagging / no-release-please model. Our release-please setup gives us automatic version bumps + CHANGELOG generation; reverting would trade one annoyance (occasional false bumps from cross-cutting commits) for several (forgotten bumps, inconsistent CHANGELOGs).
Calver for code. Doesn't fit a code library.
Refs
Related: #43 (crates.io enablement), #50 (the false-bump that prompted this look-around)
Activity