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 9898 TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox
9999
100100 release :
101- name : Publish
101+ name : Build and publish
102102 runs-on : ubuntu-22.04
103103 environment :
104104 name : pypi
@@ -109,10 +109,9 @@ jobs:
109109 - build
110110 if : |
111111 always() &&
112- startsWith(github.event.head_commit.message, 'chore: release')
112+ startsWith(github.event.head_commit.message, 'chore: release') &&
113113 !contains(needs.*.result, 'cancelled') &&
114- !contains(needs.*.result, 'failure') &&
115- github.ref == 'refs/heads/master'
114+ !contains(needs.*.result, 'failure')
116115 steps :
117116 - uses : actions/checkout@v4
118117
@@ -121,14 +120,12 @@ jobs:
121120 with :
122121 python-version : 3.13
123122
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
132128
133129 - name : Publish algoliasearch package to PyPI
130+ if : github.ref == 'refs/heads/master'
134131 uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments