Skip to content

Commit 98a6eb8

Browse files
committed
chore: upgrade
1 parent 4e7ec71 commit 98a6eb8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox
9999
100100
release:
101-
name: Build and publish
101+
name: Publish
102102
runs-on: ubuntu-22.04
103103
environment:
104104
name: pypi
@@ -111,7 +111,8 @@ jobs:
111111
always() &&
112112
startsWith(github.event.head_commit.message, 'chore: release') &&
113113
!contains(needs.*.result, 'cancelled') &&
114-
!contains(needs.*.result, 'failure')
114+
!contains(needs.*.result, 'failure') &&
115+
github.ref == 'refs/heads/master'
115116
steps:
116117
- uses: actions/checkout@v4
117118

@@ -121,11 +122,14 @@ jobs:
121122
python-version: 3.13
122123

123124
- 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
125130
126131
- name: build
127132
run: python -m build
128133

129134
- name: Publish algoliasearch package to PyPI
130-
if: github.ref == 'refs/heads/master'
131135
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)