File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will upload a Python Package to PyPI when a release is published
2
+ # For more information see:
3
+ # - https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
4
+ # - https://github.com/pypa/gh-action-pypi-publish
5
+
6
+ name : Upload Python Package
7
+
8
+ on :
9
+ release :
10
+ types : [published]
11
+
12
+ jobs :
13
+ deploy :
14
+ name : Build and publish to PyPI
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout code
18
+ uses : actions/checkout@v2
19
+ - name : Set up Python
20
+ uses : actions/setup-python@v2
21
+ with :
22
+ python-version : " 3.x"
23
+ - name : Install dependencies
24
+ run : |
25
+ python -m pip install --upgrade pip
26
+ pip install --upgrade setuptools wheel
27
+ - name : Build
28
+ run : |
29
+ python setup.py sdist bdist_wheel
30
+ - name : Publish to PyPI
31
+ uses : pypa/gh-action-pypi-publish@release/v1
32
+ with :
33
+ user : __token__
34
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # This workflow will create a release when a version tag ist pushed
2
+ # For more information see: https://github.com/softprops/action-gh-release
3
+
4
+ name : Create GitHub Release
5
+
6
+ on :
7
+ push :
8
+ tags : " v*.*.*"
9
+
10
+ jobs :
11
+ deploy :
12
+ name : Create Release
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+ - name : Release
18
+ uses : softprops/action-gh-release@v1
19
+ env :
20
+ GITHUB_TOKEN : ${{ secrets.GH_PAT }} # Private Acces Token
21
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Does not trigger release
You can’t perform that action at this time.
0 commit comments