Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 0a1532f

Browse files
authoredJun 29, 2021
Merge pull request #41 from IdentityPython/pypi
Create pypi.yml
2 parents 93ff90d + 7d617b9 commit 0a1532f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

‎.github/workflows/pypi.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Python distribution to PyPI
2+
on:
3+
release:
4+
types:
5+
- created
6+
7+
jobs:
8+
build-n-publish:
9+
name: Publish Python distribution to PyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Setup Python 3.8
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.8
17+
- name: Install pypa/build
18+
run: >-
19+
python -m
20+
pip install
21+
build
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/
30+
.
31+
- name: Publish distribution to PyPI
32+
uses: pypa/gh-action-pypi-publish@master
33+
with:
34+
user: __token__
35+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)
This repository has been archived.