We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 750fb05 commit 01af245Copy full SHA for 01af245
1 file changed
.github/workflows/release.yaml
@@ -1,6 +1,8 @@
1
name: Release
2
3
-on: [push]
+on:
4
+ release:
5
+ types: [released]
6
7
concurrency:
8
group: release
@@ -18,7 +20,7 @@ jobs:
18
20
19
21
- name: Set version statically
22
run: |
- VERSION=2.8.1
23
+ VERSION=${{ github.event.release.tag_name }}
24
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
25
26
- name: Build package
@@ -48,7 +50,7 @@ jobs:
48
50
permissions:
49
51
id-token: write
52
environment:
- name: test-pypi
53
+ name: pypi
54
url: https://pypi.org/project/python-minifier/
55
steps:
56
- uses: actions/download-artifact@v3
@@ -59,7 +61,6 @@ jobs:
59
61
- name: Publish package distributions to PyPI
60
62
uses: pypa/gh-action-pypi-publish@release/v1
63
with:
- repository-url: https://test.pypi.org/legacy/
64
print-hash: true
65
verbose: true
66
0 commit comments