Release automatically when the version on main changes
A new auto-release workflow runs the tests, tags v<version>, publishes a release with that version's changelog section and starts the deploy from the tag. It skips versions that are already tagged and refuses older versions or ones without notes.
This commit is contained in:
parent
37a83c2b3f
commit
c59be2d16d
3 changed files with 92 additions and 9 deletions
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
|
@ -2,8 +2,9 @@ name: Release to GitHub Pages
|
|||
|
||||
# The live site at https://seriesoftub.es only ever serves a published release.
|
||||
# Pushes to main run CI but never deploy. To ship: bump "version" in
|
||||
# package.json, add a CHANGELOG entry, merge, then publish a GitHub release
|
||||
# tagged v<version>.
|
||||
# package.json and date its CHANGELOG section; auto-release.yml then tags,
|
||||
# publishes the release and starts this workflow from the tag. Publishing a
|
||||
# release by hand works too.
|
||||
on:
|
||||
release:
|
||||
# "released" also fires when a pre-release is promoted to a full release.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue