Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,36 @@ on:
required: true

jobs:

cd-job:
name: Continuous Delivery
build-and-publish:
name: Build & Publish
runs-on: "ubuntu-24.04"
permissions:
contents: write
steps:
- name: SCM Checkout
- name: Check out Repository
id: check-out-repository
uses: actions/checkout@v6

- name: Setup Python & Poetry Environment
uses: ./.github/actions/python-environment
- name: Set up Python & Poetry Environment
id: set-up-python-and-poetry-environment
uses: exasol/python-toolbox/.github/actions/python-environment@v5
with:
python-version: "3.10"
poetry-version: "2.3.0"

- name: Build Artifacts
id: build-artifacts
run: poetry build

- name: PyPi Release
- name: Publish Release to PyPi
id: publish-release-to-pypi
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: "__token__"
POETRY_HTTP_BASIC_PYPI_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
run: poetry publish

- name: GitHub Release
- name: Publish Release to GitHub
id: publish-release-to-github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ on:
- '!v*'

jobs:

check-tag-version-job:
check-release-tag:
name: Check Release Tag
uses: ./.github/workflows/check-release-tag.yml
permissions:
contents: read

cd-job:
build-and-publish:
needs:
- check-tag-version-job
name: Continuous Delivery
- check-release-tag
name: Build & Publish
uses: ./.github/workflows/build-and-publish.yml
permissions:
contents: write
Expand All @@ -26,7 +25,7 @@ jobs:

publish-docs:
needs:
- cd-job
- build-and-publish
name: Publish Documentation
uses: ./.github/workflows/gh-pages.yml
permissions:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/check-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@ on:

jobs:

check-tag-version-job:
name: Check Tag Version
check-release-tag:
name: Check Release Tag
runs-on: "ubuntu-24.04"
permissions:
contents: read
steps:
- name: SCM Checkout
- name: Check out Repository
id: check-out-repository
uses: actions/checkout@v6

- name: Setup Python & Poetry Environment
uses: ./.github/actions/python-environment
- name: Set up Python & Poetry Environment
id: set-up-python-and-poetry-environment
uses: exasol/python-toolbox/.github/actions/python-environment@v5
with:
python-version: "3.10"
poetry-version: "2.3.0"

- name: Check Tag Version
- name: Check Release Tag
id: check-release-tag
# make sure the pushed/created tag matched the project version
run: "[[ `poetry version --short` == ${{ github.ref_name }} ]]"
Loading