Skip to content

Commit cd01d7a

Browse files
authored
Add an id to each step of the workflow templates (#701)
* Update workflow templates to include id & synchronize naming convention
1 parent 1335429 commit cd01d7a

28 files changed

Lines changed: 442 additions & 302 deletions

.github/workflows/build-and-publish.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,36 @@ on:
77
required: true
88

99
jobs:
10-
11-
cd-job:
12-
name: Continuous Delivery
10+
build-and-publish:
11+
name: Build & Publish
1312
runs-on: "ubuntu-24.04"
1413
permissions:
1514
contents: write
1615
steps:
17-
- name: SCM Checkout
16+
- name: Check out Repository
17+
id: check-out-repository
1818
uses: actions/checkout@v6
1919

20-
- name: Setup Python & Poetry Environment
21-
uses: ./.github/actions/python-environment
20+
- name: Set up Python & Poetry Environment
21+
id: set-up-python-and-poetry-environment
22+
uses: exasol/python-toolbox/.github/actions/python-environment@v5
2223
with:
2324
python-version: "3.10"
2425
poetry-version: "2.3.0"
2526

2627
- name: Build Artifacts
28+
id: build-artifacts
2729
run: poetry build
2830

29-
- name: PyPi Release
31+
- name: Publish Release to PyPi
32+
id: publish-release-to-pypi
3033
env:
3134
POETRY_HTTP_BASIC_PYPI_USERNAME: "__token__"
3235
POETRY_HTTP_BASIC_PYPI_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
3336
run: poetry publish
3437

35-
- name: GitHub Release
38+
- name: Publish Release to GitHub
39+
id: publish-release-to-github
3640
env:
3741
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3842
run: >-

.github/workflows/cd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ on:
77
- '!v*'
88

99
jobs:
10-
11-
check-tag-version-job:
10+
check-release-tag:
1211
name: Check Release Tag
1312
uses: ./.github/workflows/check-release-tag.yml
1413
permissions:
1514
contents: read
1615

17-
cd-job:
16+
build-and-publish:
1817
needs:
19-
- check-tag-version-job
20-
name: Continuous Delivery
18+
- check-release-tag
19+
name: Build & Publish
2120
uses: ./.github/workflows/build-and-publish.yml
2221
permissions:
2322
contents: write
@@ -26,7 +25,7 @@ jobs:
2625

2726
publish-docs:
2827
needs:
29-
- cd-job
28+
- build-and-publish
3029
name: Publish Documentation
3130
uses: ./.github/workflows/gh-pages.yml
3231
permissions:

.github/workflows/check-release-tag.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@ on:
55

66
jobs:
77

8-
check-tag-version-job:
9-
name: Check Tag Version
8+
check-release-tag:
9+
name: Check Release Tag
1010
runs-on: "ubuntu-24.04"
1111
permissions:
1212
contents: read
1313
steps:
14-
- name: SCM Checkout
14+
- name: Check out Repository
15+
id: check-out-repository
1516
uses: actions/checkout@v6
1617

17-
- name: Setup Python & Poetry Environment
18-
uses: ./.github/actions/python-environment
18+
- name: Set up Python & Poetry Environment
19+
id: set-up-python-and-poetry-environment
20+
uses: exasol/python-toolbox/.github/actions/python-environment@v5
1921
with:
2022
python-version: "3.10"
2123
poetry-version: "2.3.0"
2224

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

0 commit comments

Comments
 (0)