File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments