Prepared for the release 0.3.0 (#59) #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Publish | |
on: | |
push: | |
tags: '**' | |
workflow_dispatch: | |
jobs: | |
cd-job: | |
name: Continuous Delivery | |
runs-on: ubuntu-latest | |
steps: | |
- name: SCM Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python & Poetry Environment | |
uses: exasol/python-toolbox/.github/actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Build Artifacts | |
run: poetry build | |
- name: PyPi Release | |
env: | |
POETRY_HTTP_BASIC_PYPI_USERNAME: "__token__" | |
POETRY_HTTP_BASIC_PYPI_PASSWORD: "${{ secrets.PYPI_TOKEN }}" | |
run: poetry publish | |
- name: GitHub Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: > | |
gh release create ${GITHUB_REF_NAME} | |
--title ${GITHUB_REF_NAME} -F "./doc/changes/changes_${GITHUB_REF_NAME}.md" | |
dist/* |