Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
Git hub release action should only run if a new tag is published
  • Loading branch information
psachs committed Apr 10, 2024
1 parent 45ec23f commit 6f582f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build and Publish Package to pypi.org
on:
create:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
key: venv-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install --with test
- name: Verify style with flake8
Expand Down

0 comments on commit 6f582f9

Please sign in to comment.