File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 98
98
TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox
99
99
100
100
release :
101
- name : Publish
101
+ name : Build and publish
102
102
runs-on : ubuntu-22.04
103
103
environment :
104
104
name : pypi
@@ -109,10 +109,9 @@ jobs:
109
109
- build
110
110
if : |
111
111
always() &&
112
- startsWith(github.event.head_commit.message, 'chore: release')
112
+ startsWith(github.event.head_commit.message, 'chore: release') &&
113
113
!contains(needs.*.result, 'cancelled') &&
114
- !contains(needs.*.result, 'failure') &&
115
- github.ref == 'refs/heads/master'
114
+ !contains(needs.*.result, 'failure')
116
115
steps :
117
116
- uses : actions/checkout@v4
118
117
@@ -121,14 +120,12 @@ jobs:
121
120
with :
122
121
python-version : 3.13
123
122
124
- - name : Install dependencies and release
125
- timeout-minutes : 20
126
- run : |
127
- python -m venv python-ci-run
128
- source python-ci-run/bin/activate
129
- pip3 install --upgrade pip
130
- pip3 install tox
131
- tox release
123
+ - name : deps
124
+ run : python -m pip install -U build
125
+
126
+ - name : build
127
+ run : python -m build
132
128
133
129
- name : Publish algoliasearch package to PyPI
130
+ if : github.ref == 'refs/heads/master'
134
131
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments