Skip to content

Commit 90db244

Browse files
committed
cd: Turn on auto-tagging
1 parent 4cd4128 commit 90db244

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535
runner: ${{ matrix.os }}
36+
# In order to make a commit, we need to initialize a user.
37+
- name: Initialize mandatory git config
38+
run: |
39+
git config user.name "GitHub actions"
40+
git config user.email noreply@github.com
3641
- name: Tag New Version
37-
run: make release-version
38-
- name: Push New Version
39-
run: git push --follow-tags origin ${{ github.ref_name }}
42+
run: make release-version ref=${{ github.ref_name }}

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ test: ## Run this app's tests with a test db. Target a specific path `target=pat
5050
TEST_ARGS ?= --cov --cov-config=.coveragerc --cov-report=xml --cov-report=term --junit-xml=junit.xml
5151

5252
rule ?= patch
53+
ref ?= main
5354

5455

5556
release-version: ## Bump the version for this package.
5657
$(eval message := "Release $(next_version)")
57-
#git tag -a $(next_version) -m $(message)
58+
@git tag -a $(next_version) -m $(message)
59+
@git push --follow-tags origin $(ref)
5860
.PHONY: release-version
5961

6062

0 commit comments

Comments
 (0)