File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will upload a Python Package using Twine when a release is published
2
+ # For more information see: https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
3
+
4
+ name : Upload Release to PyPi
5
+
6
+ on :
7
+ release :
8
+ types : [published]
9
+
10
+ jobs :
11
+ deploy :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@master
17
+ - name : Set up Python 3.7
18
+ uses : actions/setup-python@v1
19
+ with :
20
+ python-version : 3.7
21
+ - name : Install pypa/build
22
+ run : >-
23
+ python -m
24
+ pip install
25
+ build
26
+ --user
27
+ - name : Build a binary wheel and a source tarball
28
+ run : >-
29
+ python -m
30
+ build
31
+ --sdist
32
+ --wheel
33
+ --outdir dist/
34
+ .
35
+ - name : Publish distribution 📦 to PyPI
36
+ uses : pypa/gh-action-pypi-publish@master
37
+ with :
38
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments