Skip to content

Commit b0d737b

Browse files
committed
workflow
1 parent 4c2ffdb commit b0d737b

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

.github/workflows/workflow.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish To PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- name: Build distributions
25+
run: |
26+
python -m pip install --upgrade pip build
27+
python -m build
28+
29+
- name: Upload distributions
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: dist
33+
path: dist/
34+
35+
publish:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: pypi
40+
permissions:
41+
id-token: write
42+
steps:
43+
- name: Download distributions
44+
uses: actions/download-artifact@v4
45+
with:
46+
name: dist
47+
path: dist/
48+
49+
- name: Publish to PyPI
50+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ keywords = ["sqlglot", "feldera", "sql", "dialect", "transpiler", "parser"]
1414
classifiers = [
1515
"Development Status :: 3 - Alpha",
1616
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: MIT License",
1817
"Programming Language :: Python :: 3",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)