-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (35 loc) · 968 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish to pypa
on:
workflow_dispatch:
release:
types: [created]
# .github/workflows/ci-cd.yml
jobs:
pypi-publish:
name: 📦 Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/puwifi
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- uses: actions/checkout@v2
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PIPY_PUWIFI_TKN }}