Skip to content

Commit 20fc957

Browse files
committed
publihing
1 parent 06a9aac commit 20fc957

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish release
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
upload_pip:
10+
if: startsWith(github.ref, 'refs/tags')
11+
runs-on: ubuntu-latest
12+
env:
13+
TAG: ${{ github.ref_name }}
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.8
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install setuptools wheel twine
27+
28+
- name: "Builds"
29+
run: python setup.py sdist bdist_wheel
30+
31+
- name: Publish package
32+
uses: pypa/gh-action-pypi-publish@release/v1
33+
with:
34+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.poetry]
2+
name = "json-sql"
3+
version = "0.1.0"
4+
description = "Run SQL queries on JSON files"
5+
authors = ["Bruno Vieira Costa <bruno@abstra.app>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = ">3.9"
10+
11+
12+
[build-system]
13+
requires = ["poetry-core"]
14+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)