Skip to content

Commit 6544531

Browse files
authored
Added missing GH workflow (#438)
1 parent 97b1929 commit 6544531

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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/*

0 commit comments

Comments
 (0)