Skip to content

Commit

Permalink
chore: test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Two Dev committed Dec 15, 2024
1 parent 75cd664 commit 2da9b32
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 90 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/ci.yml

This file was deleted.

38 changes: 17 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
name: Upload Python Package

on:
release:
types: [created]
pull_request:
branches: ['master', 'main']

jobs:
deploy:
name: Publish PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
- uses: actions/checkout@main
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Build package
run: |
python -m pip install -U pip build setuptools twine
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository testpypi --skip-existing dist/*
2 changes: 1 addition & 1 deletion tls_requests/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
__url__ = "https://github.com/thewebscraping/tls-requests"
__author__ = "Tu Pham"
__author_email__ = "[email protected]"
__version__ = "1.0.8"
__version__ = "1.0.9"
__license__ = "MIT"

0 comments on commit 2da9b32

Please sign in to comment.