Skip to content

Commit 01af245

Browse files
committed
Trigger on release
1 parent 750fb05 commit 01af245

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Release
22

3-
on: [push]
3+
on:
4+
release:
5+
types: [released]
46

57
concurrency:
68
group: release
@@ -18,7 +20,7 @@ jobs:
1820

1921
- name: Set version statically
2022
run: |
21-
VERSION=2.8.1
23+
VERSION=${{ github.event.release.tag_name }}
2224
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
2325
2426
- name: Build package
@@ -48,7 +50,7 @@ jobs:
4850
permissions:
4951
id-token: write
5052
environment:
51-
name: test-pypi
53+
name: pypi
5254
url: https://pypi.org/project/python-minifier/
5355
steps:
5456
- uses: actions/download-artifact@v3
@@ -59,7 +61,6 @@ jobs:
5961
- name: Publish package distributions to PyPI
6062
uses: pypa/gh-action-pypi-publish@release/v1
6163
with:
62-
repository-url: https://test.pypi.org/legacy/
6364
print-hash: true
6465
verbose: true
6566

0 commit comments

Comments
 (0)