mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-01-03 10:06:01 +01:00
[wheel build] Test new release system using GH Trusted Publishing
This commit is contained in:
parent
e90017c30e
commit
56c2ab2e47
15
.github/workflows/build-wheels.yml
vendored
15
.github/workflows/build-wheels.yml
vendored
@ -71,7 +71,6 @@ jobs:
|
|||||||
brew install automake
|
brew install automake
|
||||||
brew install libtool
|
brew install libtool
|
||||||
brew install swig
|
brew install swig
|
||||||
brew install wget
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
id: cache-hdf5
|
id: cache-hdf5
|
||||||
@ -187,7 +186,7 @@ jobs:
|
|||||||
working-directory: python
|
working-directory: python
|
||||||
|
|
||||||
- name: Upload produced wheels as artifacts
|
- name: Upload produced wheels as artifacts
|
||||||
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
|
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
|
||||||
with:
|
with:
|
||||||
name: pytrexio-manylinux-${{ matrix.manylinux_tag }}-wheels
|
name: pytrexio-manylinux-${{ matrix.manylinux_tag }}-wheels
|
||||||
path: ./python/wheelhouse/*.whl
|
path: ./python/wheelhouse/*.whl
|
||||||
@ -197,6 +196,9 @@ jobs:
|
|||||||
name: Publish all wheels on PyPI
|
name: Publish all wheels on PyPI
|
||||||
needs: [build_linux_wheels, build_macos_wheels]
|
needs: [build_linux_wheels, build_macos_wheels]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
# IMPORTANT: this permission is mandatory for trusted publishing
|
||||||
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the branch
|
- name: Checkout the branch
|
||||||
@ -234,14 +236,11 @@ jobs:
|
|||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Publish distribution 📦 to Test PyPI
|
- name: Publish distribution 📦 to Test PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
|
||||||
repository_url: https://test.pypi.org/legacy/
|
repository_url: https://test.pypi.org/legacy/
|
||||||
#verbose: true
|
#verbose: true
|
||||||
|
|
||||||
#- name: Publish distribution 📦 to PyPI
|
#- name: Publish distribution 📦 to PyPI
|
||||||
# uses: pypa/gh-action-pypi-publish@master
|
# uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
# with:
|
# ##if: startsWith(github.ref, 'refs/tags')
|
||||||
# password: ${{ secrets.PYPI_API_TOKEN }}
|
|
||||||
# #if: startsWith(github.ref, 'refs/tags')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user