Skip to content

Commit

Permalink
ci: remove deploy to test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
RaczeQ authored Jan 3, 2025
1 parent a7c0727 commit 3c77e45
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,6 @@ on:
- completed

jobs:
build-n-publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: 3.12
architecture: x64
enable-pep582: true
cache: false
- run: pip install toml
- uses: jannekem/run-python-script-action@v1
name: Rename test version
with:
script: |
import time
import toml
data = toml.load("pyproject.toml")
current_date = time.strftime("%Y%m%d%H%M%S")
data['project']['version']=f"{data['project']['version']}-{current_date}"
data['tool']['bumpver']['current_version']=f"{data['tool']['bumpver']['current_version']}-{current_date}"
f = open("pyproject.toml",'w')
toml.dump(data, f)
f.close()
- name: Publish distribution 📦 to Test PyPI
run: pdm publish --repository testpypi --username __token__ --password ${{ secrets.PYPI_TEST_API_TOKEN }} --comment ${{ github.sha }} --verbose

generate-docs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Generate latest library 📚 documentation 📄
Expand Down

0 comments on commit 3c77e45

Please sign in to comment.