Skip to content

Commit

Permalink
fix publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed May 11, 2024
1 parent b3d7b19 commit bbaaa2c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,28 @@
name: Upload Python Package

on:
push:
branches:
- master
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build and publish
pip install setuptools wheel twine
- name: Build package
run: python -m build
- name: Publish package
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
twine upload --repository testpypi dist/*
run: twine upload --repository testpypi dist/*

0 comments on commit bbaaa2c

Please sign in to comment.