Skip to content

Commit

Permalink
Add pypi packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mdr0id committed Oct 4, 2024
1 parent 5c614f3 commit f0ec89a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Python Package

on:
push:
branches:
- master
tags:
- 'v*'

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

setup(
name='jito_jsonrpc_sdk',
name='jito_py_rpc',
version='0.1.0',
packages=find_packages(where='sdk'),
package_dir={'': 'sdk'},
Expand Down

0 comments on commit f0ec89a

Please sign in to comment.