Skip to content

Commit 36b4bcf

Browse files
committed
Update publish workflow
1 parent 79df8dc commit 36b4bcf

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,26 @@ jobs:
1414
permissions:
1515
id-token: write
1616
steps:
17+
# Checkout the repository
1718
- uses: actions/checkout@v4
19+
20+
# Set up Python
1821
- name: Set up Python
1922
uses: actions/setup-python@v4
2023
with:
21-
python-version: "3.x"
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install setuptools wheel
24+
python-version: "3.10" # Match the Python version in pyproject.toml
25+
26+
# Install PDM
27+
- name: Install PDM
28+
run: python -m pip install --upgrade pip pdm
29+
30+
# Install build dependencies
31+
- name: Install build dependencies
32+
run: pdm install --prod
33+
34+
# Build the package
2635
- name: Build package
27-
run: |
28-
python setup.py sdist bdist_wheel # Could also be python -m build
36+
run: pdm build
37+
2938
- name: Publish package distributions to PyPI
3039
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[project]
33
name = "lkml2cube"
4-
version = "0.2.6"
4+
version = "0.2.7"
55
description = "Looker ML to Cube converter"
66
authors = [
77
{name = "Paco Valdez", email = "[email protected]"},

0 commit comments

Comments
 (0)