Skip to content

Commit

Permalink
Change test release trigger to tags (spec-first#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeSneyders authored and vbxx3 committed Feb 21, 2022
1 parent 5742ea3 commit a2c6b9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on:
push:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'
release:
types:
- published
Expand All @@ -19,7 +19,6 @@ jobs:
python-version: 3.9

- name: Update version
if: github.event_name == 'release'
run: sed -i "s/__version__ = .*/__version__ = '${{github.ref_name}}'/" */__init__.py

- name: Build a binary wheel and a source tarball
Expand Down

0 comments on commit a2c6b9b

Please sign in to comment.