File tree 2 files changed +42
-33
lines changed
2 files changed +42
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : python-sdk-ci
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ tags :
7
+ - ' *'
8
+ pull_request :
9
+ branches : [ main ]
10
+
11
+ permissions :
12
+ contents : write
13
+
14
+ jobs :
15
+ build :
16
+ name : Build
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v3
21
+
22
+ - name : Setup Python
23
+ uses : actions/setup-python@v4
24
+ with :
25
+ python-version : ' 3.11'
26
+
27
+ - name : Setup Dependencies
28
+ run : |
29
+ python -m pip install poetry
30
+ poetry install
31
+ poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
32
+
33
+ - name : Build
34
+ run : poetry build
35
+
36
+ - name : Publish
37
+ if : startsWith(github.ref, 'refs/tags/')
38
+ run : poetry publish
39
+
40
+ - name : Release
41
+ if : startsWith(github.ref, 'refs/tags/')
42
+ uses : softprops/action-gh-release@v1
You can’t perform that action at this time.
0 commit comments