Releases are completely automated by GitHub Actions:
- Make sure the changelog is up to date.
A release cannot be made if there is nothing in the changelog in the
Unreleasedsection. - Go the the Release workflow page.
- Click "Run workflow" in the top right.
- Make sure the
masterbranch is selected. - In the box below, type
patch,minorormajor, depending on the SemVer level of release to make. - Press the "Run workflow" button.
This will kick off a series of chained workflows, culminating in a new release appearing on the Releases page.
Due to fine-grained GitHub tokens not supporting opening PRs on public repos, we cannot automate the submission to WinGet. This means that after a release, a manual step is required.
This could be done by manually submitting a PR to add a new entry to manifests/c/clifton/clifton in the https://github.com/microsoft/winget-pkgs repo, but there is a tool, komac, to automate this.
First, create a personal access token (classic) with an expiration of 7 days (this limit is imposed by the isambard-sc organisation) and with the public_repo scope.
Run komac token update and paste in the token.
VERSION=0.3.0 komac update clifton.clifton --version "${VERSION}" --urls "https://github.com/isambard-sc/clifton/releases/download/${VERSION}/clifton-windows-x86_64.zip"