Skip to content

Commit

Permalink
Feat/sdk deployment (Airstack-xyz#10)
Browse files Browse the repository at this point in the history
* testing sdk deployment

* typo fix

* pip install twine

* created pypirc file

* Update .pypirc

* Update publish-to-test-pypi.yml

* Update publish-to-test-pypi.yml

* Update publish-to-test-pypi.yml

* Update publish-to-test-pypi.yml

* Update setup.cfg

* Update publish-to-test-pypi.yml

* fixed the python sdk publish workflow
hbisht-airstack authored Sep 20, 2023
1 parent 33627d1 commit bc6d553
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/prod-publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on: workflow_dispatch

permissions:
contents: read
id-token: write
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit bc6d553

Please sign in to comment.