Skip to content

Commit 4e7ec71

Browse files
committed
chore: native release
1 parent 280254c commit 4e7ec71

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 12 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: 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

0 commit comments

Comments
 (0)