Skip to content

Commit

Permalink
Merge pull request #77 from consideRatio/pr/release-updates-automation
Browse files Browse the repository at this point in the history
Add release automation and documentation
  • Loading branch information
consideRatio authored Nov 4, 2021
2 parents aa8fda2 + 90f2162 commit 09e7423
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-updates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Automatically updates "vX" branches based on GitHub releases. To cut a new
# release, use the GitHub UI where you enter a tag name and release name of
# "vX.Y.Z". See https://github.com/jupyterhub/repo2docker-action/releases.
---
name: Release updates

on:
release:
types: [published, edited]

jobs:
actions-tagger:
runs-on: windows-latest
permissions:
contents: write
steps:
# Action reference: https://github.com/Actions-R-Us/actions-tagger
- uses: Actions-R-Us/actions-tagger@f411bd910a5ad370d4511517e3eac7ff887c90ea
with:
# By using branches as identifiers it is still possible to backtrack
# some patch, but not if we use tags.
prefer_branch_releases: true
token: "${{ github.token }}"
13 changes: 13 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Making a release

Releases are automated through
[.github/workflows/release-updates.yaml](https://github.com/jupyterhub/repo2docker-action/blob/HEAD/.github/workflows/release-updates.yaml).

To cut a release, visit the projects [releases
page](https://github.com/jupyterhub/repo2docker-action/releases) where
you create a new GitHub release. Enter a _tag name_ and _release name_ of
"vX.Y.Z". Doing so will automatically update the "vX" branch allowing users to
reference this action with `jupyterhub/repo2docker-action@vX`.

If you are to cut a major release, make sure to also update references to the
`@vX` branch to the `@vX+1` branch.

0 comments on commit 09e7423

Please sign in to comment.