Skip to content

Commit

Permalink
ci: fix pypi action
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Sep 6, 2023
1 parent 0d1cc80 commit 62c07e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Upload to PyPI

on:
push:
tags:
- 'v[0-9]+'
- 'test-v[0-9]*' # Uploads to https://test.pypi.org/project/tree-sitter/
- 'v[0-9]+.*'
- 'test-v[0-9]+.*' # Uploads to https://test.pypi.org/project/tree-sitter/

jobs:
build-sdist:
Expand All @@ -15,7 +17,7 @@ jobs:
with:
python-version: '3.10'
- run: python setup.py sdist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/*
Expand Down Expand Up @@ -48,7 +50,7 @@ jobs:
CIBW_ARCHS_MACOS: x86_64 arm64

# Make wheels downloadable from GitHub UI and from the pypi step
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/*.whl
Expand Down

0 comments on commit 62c07e7

Please sign in to comment.