Skip to content

Commit

Permalink
Create publish-to-testpypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
QG-phy authored Apr 11, 2024
1 parent 075aa7c commit 0ae28ad
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish-to-testpypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to TestPyPI

on:
push:
branches: [ dev ]

jobs:

publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- 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:
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload --verbose --repository-url https://test.pypi.org/legacy/ --password $TEST_PYPI_API_TOKEN dist/*

0 comments on commit 0ae28ad

Please sign in to comment.