forked from GitHub/gf-core
disable pypi publication for now
This commit is contained in:
78
.github/workflows/build-python-package.yml
vendored
78
.github/workflows/build-python-package.yml
vendored
@@ -59,51 +59,51 @@ jobs:
|
|||||||
name: wheel-${{ matrix.os }}
|
name: wheel-${{ matrix.os }}
|
||||||
path: ./wheelhouse
|
path: ./wheelhouse
|
||||||
|
|
||||||
build_sdist:
|
# build_sdist:
|
||||||
name: Build source distribution
|
# name: Build source distribution
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
# - uses: actions/setup-python@v5
|
||||||
name: Install Python
|
# name: Install Python
|
||||||
with:
|
# with:
|
||||||
python-version: '3.10'
|
# python-version: '3.10'
|
||||||
|
|
||||||
- name: Build sdist
|
# - name: Build sdist
|
||||||
run: cd src/runtime/python && python setup.py sdist
|
# run: cd src/runtime/python && python setup.py sdist
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
# - uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: wheel-source
|
# name: wheel-source
|
||||||
path: ./src/runtime/python/dist/*.tar.gz
|
# path: ./src/runtime/python/dist/*.tar.gz
|
||||||
|
|
||||||
upload_pypi:
|
# upload_pypi:
|
||||||
name: Upload to PyPI
|
# name: Upload to PyPI
|
||||||
needs: [build_wheels, build_sdist]
|
# needs: [build_wheels, build_sdist]
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
# if: github.ref == 'refs/heads/master' && github.event_name == 'push'
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
# - name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
# uses: actions/setup-python@v5
|
||||||
with:
|
# with:
|
||||||
python-version: '3.x'
|
# python-version: '3.x'
|
||||||
|
|
||||||
- name: Install twine
|
# - name: Install twine
|
||||||
run: pip install twine
|
# run: pip install twine
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4.1.7
|
# - uses: actions/download-artifact@v4.1.7
|
||||||
with:
|
# with:
|
||||||
pattern: wheel-*
|
# pattern: wheel-*
|
||||||
merge-multiple: true
|
# merge-multiple: true
|
||||||
path: ./dist
|
# path: ./dist
|
||||||
|
|
||||||
- name: Publish
|
# - name: Publish
|
||||||
env:
|
# env:
|
||||||
TWINE_USERNAME: __token__
|
# TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: |
|
# run: |
|
||||||
twine upload --verbose --non-interactive --skip-existing dist/*
|
# twine upload --verbose --non-interactive --skip-existing dist/*
|
||||||
|
|||||||
Reference in New Issue
Block a user