File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+ description : Publish package on PyPI
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : Prepare Poetry
7
+ shell : bash
8
+ run : poetry config pypi-token.pypi ${{ env.PYPI_API_TOKEN }}
9
+
10
+ - name : Publish
11
+ shell : bash
12
+ run : |
13
+ poetry version ${{ env.VERSION }}
14
+ poetry publish --build
Original file line number Diff line number Diff line change
1
+ name : CD
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " [0-9]+.[0-9]+.[0-9]+"
7
+
8
+ jobs :
9
+ cd :
10
+ name : Continuous Delivery
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Run checkout
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Set up environment
18
+ uses : ./.github/actions/environment
19
+
20
+ - name : Deploy
21
+ uses : ./.github/actions/deploy
22
+ env :
23
+ PYPI_API_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
24
+ VERSION : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments