Skip to content

Commit ad44cda

Browse files
build: action to publish to pypi
1 parent 6e70c71 commit ad44cda

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
10+
publish:
11+
12+
runs-on: ubuntu-latest
13+
14+
environment:
15+
name: Production
16+
17+
steps:
18+
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up Python 3.9
22+
uses: actions/setup-python@v3
23+
with:
24+
python-version: 3.9
25+
cache: pip
26+
27+
- name: To PyPI using Flit
28+
uses: AsifArmanRahman/to-pypi-using-flit@v1
29+
with:
30+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)