diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..74319a6 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: Publish to TestPyPI + +on: + push: + tags: + - 'v*' # Only run when a tag like v1.0, v2.1, etc. is pushed + +jobs: + publish: + name: Build and publish to TestPyPI + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flit twine + + - name: Build package + run: | + flit build + + - name: List dist contents + run: | + ls -al dist + + - name: Publish to TestPyPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} + run: | + twine upload --repository testpypi dist/* diff --git a/dist/vcd2df-1.0.tar.gz b/dist/vcd2df-1.0.tar.gz deleted file mode 100644 index 8010357..0000000 Binary files a/dist/vcd2df-1.0.tar.gz and /dev/null differ diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..a975a91 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +"this is a test commit to see if pushing this will automatically update testpypi" \ No newline at end of file diff --git a/vcd2df.py b/vcd2df.py index b244c60..98e2402 100644 --- a/vcd2df.py +++ b/vcd2df.py @@ -1,6 +1,6 @@ """Value Change Dump to Data Frame (Pandas)""" -__version__ = "1.0" +__version__ = "1.0.1" import pandas as pd