Skip to content

Commit

Permalink
[GITACTION]: Added publish to testpypi github action
Browse files Browse the repository at this point in the history
  • Loading branch information
novoneel-iudx committed Jan 7, 2025
1 parent 788ffc2 commit a8ace33
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish_testpypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to TestPyPi

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- 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 twine
- name: Build package
run: python -m build

- name: Publish to TestPyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
python -m twine upload --repository testpypi dist/*

0 comments on commit a8ace33

Please sign in to comment.