File tree Expand file tree Collapse file tree 2 files changed +35
-16
lines changed
Expand file tree Collapse file tree 2 files changed +35
-16
lines changed Original file line number Diff line number Diff line change @@ -90,18 +90,12 @@ jobs:
9090 run : |
9191 pip freeze
9292
93- release :
93+ tag :
9494 needs : [ lint, test, smoke_test ]
9595 if : github.ref == 'refs/heads/master'
9696 concurrency :
97- group : release
97+ group : tag
9898 runs-on : ubuntu-latest
99- environment :
100- name : pypi
101- url : https://pypi.org/p/strong-opx
102- permissions :
103- contents : write # to clone repo
104- id-token : write # to publish to PyPI
10599
106100 steps :
107101 - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 4.1.4
@@ -111,11 +105,7 @@ jobs:
111105
112106 - name : Install Dependencies
113107 run : |
114- pip install --upgrade python-semantic-release build twine
115-
116- - name : Build package distributions
117- run : |
118- python -m build
108+ pip install --upgrade python-semantic-release
119109
120110 - name : Publish to VCS
121111 run : |
@@ -124,6 +114,3 @@ jobs:
124114 env :
125115 GH_TOKEN : ${{ github.token }}
126116 GIT_COMMIT_AUTHOR : " Strong Analytics <access@strong.io>"
127-
128- - name : Publish package distributions to PyPI
129- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v[0-9]+.[0-9]+.[0-9]+' # Matches vX.Y.Z (e.g., v1.0.0, v2.3.4)
7+
8+ jobs :
9+ publish :
10+ concurrency :
11+ group : publish
12+ runs-on : ubuntu-latest
13+ environment :
14+ name : PyPI
15+ url : https://pypi.org/p/strong-opx
16+ permissions :
17+ contents : read # to clone repo
18+ id-token : write # to publish to PyPI
19+
20+ steps :
21+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 4.1.4
22+
23+ - name : Install Dependencies
24+ run : |
25+ pip install --upgrade build twine
26+
27+ - name : Build package distributions
28+ run : |
29+ python -m build
30+
31+ - name : Publish package distributions to PyPI
32+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
You can’t perform that action at this time.
0 commit comments