Skip to content

Commit

Permalink
Add bumpver config + release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Dec 24, 2022
1 parent 2be3f42 commit f367e63
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ jobs:
- test
permissions:
packages: write
contents: read
contents: write
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -114,7 +115,7 @@ jobs:
tags: |
type=edge
type=raw,value={{tag}},enable=${{ github.ref_type == 'tag' && ! startsWith(github.ref_name, 'v') }}
type=match,pattern=v(\d{4}\.\d{4}(-.+)?),group=1
type=match,pattern=v(\d{4}\.\d{2}.\d+(-.+)?),group=1
- name: Release image
uses: akhilerm/[email protected]
Expand Down
12 changes: 12 additions & 0 deletions bumpver.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[bumpver]
current_version = "v2022.12.1-alpha"
version_pattern = "vYYYY.0M.PATCH[-TAG]"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true

[bumpver.file_patterns]
"bumpver.toml" = [
'current_version = "{version}"'
]

0 comments on commit f367e63

Please sign in to comment.