Skip to content

Commit c487f5c

Browse files
Fixed the release action (#382)
1 parent f8a6668 commit c487f5c

File tree

2 files changed

+22
-30
lines changed

2 files changed

+22
-30
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,30 @@ jobs:
1010
env:
1111
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1212
steps:
13-
- uses: actions/checkout@master
14-
- name: Set up Python 3.7
15-
uses: actions/setup-python@v1
16-
with:
17-
python-version: 3.7
13+
- uses: actions/checkout@master
1814

19-
- name: Install Poetry
20-
uses: dschep/install-poetry-action@v1.3
15+
- name: Set up Python
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: '3.10'
2119

22-
- name: Cache Poetry virtualenv
23-
uses: actions/cache@v1
24-
id: cache
25-
with:
26-
path: ~/.virtualenvs
27-
key: poetry-${{ hashFiles('**/poetry.lock') }}
28-
restore-keys: |
29-
poetry-${{ hashFiles('**/poetry.lock') }}
20+
- uses: docker-practice/actions-setup-docker@master
3021

31-
- name: Set Poetry config
32-
run: |
33-
poetry config virtualenvs.in-project false
34-
poetry config virtualenvs.path ~/.virtualenvs
22+
- name: Install Poetry
23+
run: |
24+
curl -sSL https://install.python-poetry.org | python3 -
3525
36-
- name: Set Submodules
37-
run: |
38-
git submodule update --init --recursive
26+
- name: Install Dev requirements
27+
run: |
28+
pip install -U setuptools wheel
29+
pip install -r dev_requirements.txt
3930
40-
- name: Install Dependencies
41-
run: poetry install
42-
if: steps.cache.outputs.cache-hit != 'true'
31+
- name: Install Dependencies
32+
if: github.event_name == 'release'
33+
run: |
34+
poetry install
4335
44-
- name: Publish to PyPI
45-
if: github.event_name == 'release'
46-
run: |
47-
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} --build
36+
- name: Publish to PyPI
37+
if: github.event_name == 'release'
38+
run: |
39+
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} --build

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.9.28"
3+
version = "0.9.29"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)