Skip to content

Commit f5b9be0

Browse files
committed
Updated deployment
1 parent f249318 commit f5b9be0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Get branch names
16+
id: branch-name
17+
uses: tj-actions/[email protected]
1218

1319
- name: Run semver-diff
1420
id: semver-diff
@@ -34,6 +40,8 @@ jobs:
3440
- name: bumpversion
3541
run: |
3642
make increase-version PART="${{ steps.semver-diff.outputs.release_type }}"
43+
env:
44+
CURRENT_BRANCH: ${{ steps.branch-name.outputs.tag }}
3745

3846
- name: Build and publish
3947
run: make release

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ dist: clean install-deploy ## builds source and wheel package
7979
@pip install twine==3.4.1
8080
@python setup.py sdist bdist_wheel
8181

82-
increase-version: guard-PART ## Increase project version
82+
increase-version: guard-PART guard-CURRENT_BRANCH ## Increase project version
83+
@git checkout main
8384
@bump2version $(PART)
85+
@git checkout $(CURRENT_BRANCH)
86+
@git merge main
8487

8588
install-wheel: ## Install wheel
8689
@echo "Installing wheel..."

0 commit comments

Comments
 (0)