Skip to content

Commit a53ae82

Browse files
committed
Update workflow with project metadata
- Add PACKAGE_NAME and PYTHON_VERSION environment variables - Fix PyPI project URL to correct package name - Use env variable for Python version consistency
1 parent d2dfa8c commit a53ae82

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
types: [published]
66
workflow_dispatch:
77

8+
# Set the project metadata for GitHub to display
9+
# This links the workflow to the PyPI package
10+
env:
11+
PACKAGE_NAME: OpenF1-python-client
12+
PYTHON_VERSION: "3.12"
13+
814
jobs:
915
build:
1016
name: Build distribution
@@ -16,7 +22,7 @@ jobs:
1622
- name: Set up Python
1723
uses: actions/setup-python@v5
1824
with:
19-
python-version: "3.12"
25+
python-version: ${{ env.PYTHON_VERSION }}
2026

2127
- name: Install build dependencies
2228
run: python -m pip install --upgrade pip build
@@ -36,7 +42,7 @@ jobs:
3642
runs-on: ubuntu-latest
3743
environment:
3844
name: pypi
39-
url: https://pypi.org/p/openf1-client
45+
url: https://pypi.org/project/OpenF1-python-client/
4046
permissions:
4147
id-token: write
4248

0 commit comments

Comments
 (0)