Skip to content

Commit 7dbc6a1

Browse files
authored
Create python-publish.yml
1 parent fcaf9d8 commit 7dbc6a1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
deploy:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@master
22+
- name: Set up Python 3.7
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: 3.7
26+
- name: Install pypa/build
27+
run: >-
28+
python -m
29+
pip install
30+
build
31+
--user
32+
- name: Build a binary wheel and a source tarball
33+
run: >-
34+
python -m
35+
build
36+
--sdist
37+
--wheel
38+
--outdir dist/
39+
.

0 commit comments

Comments
 (0)