Skip to content

ci: one-action release via workflow_dispatch - #9

Merged
abosnjakovic merged 1 commit into
mainfrom
ci/release-dispatch
May 11, 2026
Merged

ci: one-action release via workflow_dispatch#9
abosnjakovic merged 1 commit into
mainfrom
ci/release-dispatch

Conversation

@abosnjakovic

Copy link
Copy Markdown
Owner

Summary

  • Replaces release-please's PR-driven flow with a single workflow_dispatch action. Click "Run workflow" → version bumps, vimdoc regenerates, commit + tag pushed, GH release created with categorised changelog, LuaRocks publishes.
  • No intermediate release PR.

What changes

  • .github/workflows/release.yml: workflow_dispatch with bump input (auto|patch|minor|major). One job runs the full chain.
  • scripts/release.sh (new): computes next semver from conventional commits since the last v* tag, updates version.txt, prepends a categorised CHANGELOG entry, emits release notes for the GH release step. Supports --dry-run.
  • scripts/test_release.sh: thin shim now — exec ./scripts/release.sh --dry-run. make test-release still works.
  • release-please-config.json, .release-please-manifest.json: deleted.

Why

Previous setup required two steps: merge feature commits → merge the release-please PR. Closed PR #8 was exactly that intermediate step the user did not want. Now one action does it all.

Test plan

  • make test-release runs cleanly against current main (auto detects no feat/fix → exits 1 as designed)
  • Forcing BUMP=patch produces the expected categorised CHANGELOG entry
  • On main, "Run workflow" → version.txt bumps, tag pushed, GH release appears with notes, LuaRocks job succeeds
  • doc/nyan.txt regenerated and included in the release commit

Single workflow_dispatch action: bumps version (auto/patch/minor/major),
regenerates vimdoc, commits, tags, pushes, creates GH release, uploads to LuaRocks.
No intermediate release PR.
@abosnjakovic
abosnjakovic merged commit 1d38338 into main May 11, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant