Commit c357aad 1 parent ce79b39 commit c357aad Copy full SHA for c357aad
File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload to PIP
2
+
3
+ # Controls when the action will run.
4
+ on :
5
+ # Triggers the workflow when a release is created
6
+ release :
7
+ types : [created]
8
+ # Allows you to run this workflow manually from the Actions tab
9
+ workflow_dispatch :
10
+
11
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
+ jobs :
13
+ # This workflow contains a single job called "upload"
14
+ upload :
15
+ # The type of runner that the job will run on
16
+ runs-on : ubuntu-latest
17
+
18
+ # Steps represent a sequence of tasks that will be executed as part of the job
19
+ steps :
20
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21
+ - uses : actions/checkout@v2
22
+
23
+ # Sets up python
24
+ - uses : actions/setup-python@v2
25
+ with :
26
+ python-version : 3.9
27
+
28
+ # Install dependencies
29
+ - name : Install dependencies
30
+ run : |
31
+ python -m pip install poetry
32
+ poetry install --no-dev
33
+
34
+ # Build and upload to PyPI
35
+ - name : Builds and upload to PyPI
36
+ run : |
37
+ poetry config pypi-token.pypi "$TWINE_TOKEN"
38
+ poetry publish
39
+ env :
40
+ TWINE_TOKEN : ${{ secrets.TWINE_TOKEN }}
You can’t perform that action at this time.
0 commit comments