Skip to content

Commit bfdd6d1

Browse files
CI improvements. Auto drafting releases and pushing versions to PyPi (#2)
* [add] added release drafter automation
1 parent d12e440 commit bfdd6d1

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

.github/release-drafter-config.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name-template: 'Version $NEXT_PATCH_VERSION - Summary Here🌈'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
categories:
4+
- title: '🚀Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: 'Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: '🧰Maintenance'
14+
label: 'chore'
15+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
16+
exclude-labels:
17+
- 'skip-changelog'
18+
template: |
19+
## Changes
20+
21+
$CHANGES

.github/workflows/poetry-pytest.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Run Tests
2-
on: push
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
release:
8+
types: [created, edited, published, prereleased]
39

410
jobs:
511
pytest:
@@ -41,3 +47,8 @@ jobs:
4147

4248
- name: Upload coverage
4349
run: poetry run codecov -t ${{ secrets.CODECOV_TOKEN }}
50+
51+
- name: Publish to PyPI
52+
if: github.event_name == 'release'
53+
run: |
54+
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}

.github/workflows/release-drafter.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
with:
16+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
17+
config-name: release-drafter-config.yml
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
description = "Redis benchmark run helper. A wrapper around ftsb_redisearch ( future versions will also support redis-benchmark and memtier_benchmark )."
55
authors = ["filipecosta90 <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)