mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 02:30:44 -06:00
ci: use newer trusted publishing for pypi
This commit is contained in:
parent
4d84f3730e
commit
cd9bc5fe8f
1 changed files with 7 additions and 3 deletions
10
.github/workflows/pypi.yml
vendored
10
.github/workflows/pypi.yml
vendored
|
@ -9,6 +9,11 @@ jobs:
|
||||||
build-n-publish:
|
build-n-publish:
|
||||||
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: pypi
|
||||||
|
url: https://pypi.org/p/viv
|
||||||
|
permissions:
|
||||||
|
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -23,7 +28,6 @@ jobs:
|
||||||
- name: Build a binary wheel and a source tarball
|
- name: Build a binary wheel and a source tarball
|
||||||
run: >-
|
run: >-
|
||||||
python -m build --sdist --wheel --outdir dist/ .
|
python -m build --sdist --wheel --outdir dist/ .
|
||||||
- name: Publish a Python distribution to PyPI
|
|
||||||
|
- name: Publish package distributions to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
||||||
|
|
Loading…
Reference in a new issue