Skip to content

v0.0.20

v0.0.20 #2

Workflow file for this run

name: PyPI
on:
release:
types: [created]
permissions:
contents: read
jobs:
build:
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 build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine hatchling
- name: Build package
run: |
python -m build
- name: Check distribution
run: |
python -m twine check dist/*
- name: Upload distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.AI_CODESPARK_PYPI_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/