File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
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 : Build and publish
101
+ name : Publish
102
102
runs-on : ubuntu-22.04
103
103
environment :
104
104
name : pypi
@@ -111,7 +111,8 @@ jobs:
111
111
always() &&
112
112
startsWith(github.event.head_commit.message, 'chore: release') &&
113
113
!contains(needs.*.result, 'cancelled') &&
114
- !contains(needs.*.result, 'failure')
114
+ !contains(needs.*.result, 'failure') &&
115
+ github.ref == 'refs/heads/master'
115
116
steps :
116
117
- uses : actions/checkout@v4
117
118
@@ -121,11 +122,14 @@ jobs:
121
122
python-version : 3.13
122
123
123
124
- name : deps
124
- run : python -m pip install -U build
125
+ run : |
126
+ python -m venv python-ci-run
127
+ source python-ci-run/bin/activate
128
+ pip3 install --upgrade pip
129
+ python -m pip install -U build
125
130
126
131
- name : build
127
132
run : python -m build
128
133
129
134
- name : Publish algoliasearch package to PyPI
130
- if : github.ref == 'refs/heads/master'
131
135
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments