feat: publish package to pypi workflow and rename package to djinitx

This commit is contained in:
sankalp committed 2025-10-29 13:42:46 +05:45
1 parent 937caf600b
commit cb89795077
4 files changed
+55 -4

No files matched your search

+2 -2
View File
@@ -31,11 +31,11 @@ jobs:
- name: Lint with Ruff
run: |
ruff check src/
ruff check djinit/
- name: Check formatting with Ruff
run: |
ruff format --check src/
ruff format --check djinit/
- name: Test CLI import
run: |
+39
View File
@@ -0,0 +1,39 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
name: Build and Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: |
python -m build
- name: Check package
run: |
twine check dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*