Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Aug 7, 2024
1 parent f3a4af6 commit de84d7c
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
pathInArchive: winfsp-tests-x86.exe

- name: Run cibuildwheel for ${{ matrix.python_version }}-${{ matrix.architecture }}
timeout-minutes: 10
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # pin v2.20.0
env:
CIBW_BUILD: ${{ matrix.python_version }}-${{ matrix.architecture }}
Expand All @@ -61,6 +62,7 @@ jobs:
- name: Upload wheel as an artifact
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # pin v4.3.6
with:
name: artifact-wheel-${{ matrix.runs-on }}-${{ matrix.python_version }}-${{ matrix.architecture }}
path: ./wheelhouse/*.whl

Source:
Expand All @@ -81,12 +83,13 @@ jobs:

- name: Build source distribution
run: |
pip install .
python setup.py sdist
python -m pip install build
python -m build --sdist
- name: Upload wheel as an artifact
- name: Upload source distribution as an artifact
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # pin v4.3.6
with:
name: artifact-sdist
path: ./dist/*.tar.gz

Release:
Expand All @@ -98,11 +101,17 @@ jobs:
- name: Download wheels and source distribution
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # pin v4.1.8
with:
name: artifact
pattern: artifact-*
path: dist
merge-multiple: true

- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # pin v1.9.0
with:
user: __token__
password: ${{ secrets.pypi_password }}
- name: SHOW ME WHAT YOU GOT
run: |
ls -lh
ls -lh dist
# - name: Publish on PyPI
# uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # pin v1.9.0
# with:
# user: __token__
# password: ${{ secrets.pypi_password }}

0 comments on commit de84d7c

Please sign in to comment.