File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Upload to PyPI
2
- run-name : ${{ github.actor }} is uploading a new release of together python library client to PyPI 🚀
3
- on : [push]
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ PYPI_API_TOKEN :
7
+ required : true
8
+ description : your API token on PyPI
9
+
4
10
jobs :
5
11
Upload-Library-to-PyPI :
6
12
runs-on : ubuntu-latest
7
13
steps :
8
14
- name : Check out repository code
9
- uses : actions/checkout
15
+ uses : actions/checkout@v2
10
16
- name : To build the dist archives into the dist/ directory, first install build
11
17
run : |
12
18
python3 -m pip install --upgrade build
@@ -16,11 +22,12 @@ jobs:
16
22
- name : List files in the repository to check you have the .toml file
17
23
run : |
18
24
ls ${{ github.workspace }}
19
- - name : Use `python3 -m build` to build the dist archives run
25
+ - name : Use `python3 -m build` to build the dist archives run, You will see the `dist/` folder appear in the main directory of your repository
20
26
run : |
21
27
python3 -m build
22
- - name : You will see the `dist/` folder appear in the main directory of your repository
23
- - name : Use `python3 -m twine upload dist/*` to upload the archives to PyPI.
24
- run : |
25
- python3 -m twine upload dist/*
28
+ - name : Publish distribution 📦 to PyPI
29
+ if : startsWith(github.ref, 'refs/tags')
30
+ uses : pypa/gh-action-pypi-publish@release/v1
31
+ with :
32
+ password : ${{ github.event.inputs.PYPI_API_TOKEN }}
26
33
Original file line number Diff line number Diff line change 1
- VERSION = "0.1.2 "
1
+ VERSION = "0.1.3 "
You can’t perform that action at this time.
0 commit comments