File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build & Publish
2
+
3
+ on :
4
+ workflow_call :
5
+ secrets :
6
+ PYPI_TOKEN :
7
+ required : true
8
+
9
+ jobs :
10
+
11
+ cd-job :
12
+ name : Continuous Delivery
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+
16
+ - name : SCM Checkout
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Setup Python & Poetry Environment
20
+ uses : exasol/python-toolbox/.github/actions/python-environment@0.20.0
21
+
22
+ - name : Build Artifacts
23
+ run : poetry build
24
+
25
+ - name : PyPi Release
26
+ env :
27
+ POETRY_HTTP_BASIC_PYPI_USERNAME : " __token__"
28
+ POETRY_HTTP_BASIC_PYPI_PASSWORD : " ${{ secrets.PYPI_TOKEN }}"
29
+ run : poetry publish
30
+
31
+ - name : GitHub Release
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ run : >
35
+ gh release create ${GITHUB_REF_NAME}
36
+ --title ${GITHUB_REF_NAME}
37
+ --notes-file ./doc/changes/changes_${GITHUB_REF_NAME}.md
38
+ dist/*
You can’t perform that action at this time.
0 commit comments