mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
Use trusted publisher for publishing to pypi (#531)
This commit is contained in:
parent
af37e83db1
commit
0061668c9f
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -7,13 +7,15 @@ jobs:
|
|||||||
build-n-publish:
|
build-n-publish:
|
||||||
name: Build release packages
|
name: Build release packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions: # for trusted publishing
|
||||||
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: "3.x"
|
||||||
|
|
||||||
- name: Install pypa/build
|
- name: Install pypa/build
|
||||||
run: >-
|
run: >-
|
||||||
@ -30,6 +32,4 @@ jobs:
|
|||||||
--outdir dist/
|
--outdir dist/
|
||||||
.
|
.
|
||||||
- name: Publish release on pypi
|
- name: Publish release on pypi
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user