Skip to content

Releasing

Jonas Brømsø edited this page Jun 13, 2024 · 11 revisions

Check List

Make sure:

  • The examples in README.md reflect the version to be released
  • The version pointed to in action.yml reflect the version to be released
  • The Docker image is build as linux/amd64 (see Development)
  • The canonical version points to the latest release eg. v0 points to 0.X.0 (See: Versioning)
  • Move the canonical tag on the action (rojopolis/spellcheck-github-actions@v0)

Pushing the Docker image to DockerHub

Login/Authenticate

cat DOCKERHUB_ACCESS_TOKEN | docker login -u jonasbn --password-stdin

Tag

docker tag jonasbn/github-action-spellcheck jonasbn/github-action-spellcheck:TAGNAME

Push

docker push jonasbn/github-action-spellcheck:TAGNAME

latest is not built automatically at this time, so remember to tag and push latest also.

docker push jonasbn/github-action-spellcheck:latest

Inspect

You can check DockerHub using hub-tool

❯ hub-tool tag ls jonasbn/github-action-spellcheck
2FA required, please provide the 6 digit code: ******
TAG                                        DIGEST                                                                     STATUS      LAST UPDATE       LAST PUSHED    LAST PULLED    SIZE
jonasbn/github-action-spellcheck:latest    sha256:dc6c61976b7afef0372a6765af4f2ccba36e3f895f4fe00a457f2b421e454e4a    active      35 minutes ago    35 minutes     40 minutes     71.33MB
jonasbn/github-action-spellcheck:0.14.0    sha256:dc6c61976b7afef0372a6765af4f2ccba36e3f895f4fe00a457f2b421e454e4a    active      35 minutes ago    35 minutes     40 minutes     71.33MB
jonasbn/github-action-spellcheck:0.13.0    sha256:dc6c61976b7afef0372a6765af4f2ccba36e3f895f4fe00a457f2b421e454e4a    active      4 weeks ago       4 weeks        40 minutes     71.33MB
jonasbn/github-action-spellcheck:0.12.0    sha256:5775daa8d4916b63b026dcf40f0b1531d4aa8de23b829ce09f6ceb66707cc434    active      2 months ago      2 months       4 weeks        72.95MB
jonasbn/github-action-spellcheck:0.11.0    sha256:ab474850bc00020cb892d21cdfae17e8f2cf8f3fa5904c28a315de4e7658bc65    inactive    2 months ago      2 months       2 months       71.22MB
jonasbn/github-action-spellcheck:0.10.0    sha256:59fbce430c11227544820082dfb549e0bfc2998919ef49673ac0ea5eb8a7f47e    inactive    3 months ago      3 months       2 months       69.99MB
jonasbn/github-action-spellcheck:0.9.1     sha256:746cf5f4279026848bee95681363d564ae4000f9f521fb52284533a5a18ff556    inactive    4 months ago      4 months       3 months       69.99MB
jonasbn/github-action-spellcheck:0.9.0     sha256:746cf5f4279026848bee95681363d564ae4000f9f521fb52284533a5a18ff556    inactive    4 months ago      4 months       3 months       69.99MB

Publishing to the GitHub Marketplace

The publishing process is completed using the release process on GitHub, so first you tag the repository and then you outline the release.

Moving the canonical tag

Example is using v0 (the only canonical version at the time of writing)

Remove local tag

git tag -d v0  

Remove remote tag

git push origin --delete v0

Make new tag and push it to remote

git tag -a v0
git push --tags

Resources and References