Skip to content

Commit f781131

Browse files
author
Two Dev
committed
CI: publish pypi
1 parent 75cd664 commit f781131

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22

33
on:
4+
push:
5+
branches: ['master', 'main']
6+
47
pull_request:
58
branches: ['master', 'main', 'dev', 'develop']
69

.github/workflows/publish.yml

+15-19
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@ jobs:
88
deploy:
99
name: Publish PyPI
1010
runs-on: ubuntu-latest
11-
permissions:
12-
id-token: write
1311
steps:
14-
- uses: actions/checkout@master
15-
- name: Set up Python 3.9
16-
uses: actions/setup-python@v3
17-
with:
18-
python-version: '3.9'
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install setuptools wheel twine
23-
- name: Build a binary wheel
24-
run: >-
25-
python setup.py sdist bdist_wheel
26-
- name: Publish distribution 📦 to PyPI
27-
uses: pypa/gh-action-pypi-publish@master
28-
with:
29-
password: ${{ secrets.PYPI_API_TOKEN }}
30-
skip-existing: true
12+
- uses: actions/checkout@main
13+
- name: Set up Python 3.9
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.9'
17+
- name: Build package
18+
run: |
19+
python -m pip install -U pip build setuptools twine
20+
- name: Publish
21+
env:
22+
TWINE_USERNAME: __token__
23+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
24+
run: |
25+
python setup.py sdist bdist_wheel
26+
twine upload --skip-existing dist/*

tls_requests/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
__url__ = "https://github.com/thewebscraping/tls-requests"
44
__author__ = "Tu Pham"
55
__author_email__ = "[email protected]"
6-
__version__ = "1.0.8"
6+
__version__ = "1.0.9"
77
__license__ = "MIT"

0 commit comments

Comments
 (0)