Skip to content

Commit

Permalink
chore: test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Two Dev committed Dec 15, 2024
1 parent 75cd664 commit c8ee60c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 89 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/ci.yml

This file was deleted.

38 changes: 17 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
name: Upload Python Package

on:
release:
types: [created]
pull_request:
branches: ['master', 'main']

jobs:
deploy:
name: Publish PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
- uses: actions/checkout@main
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Build package
run: |
python -m pip install -U pip build setuptools twine
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository testpypi --skip-existing dist/*

0 comments on commit c8ee60c

Please sign in to comment.