Skip to content

Commit 9b963b7

Browse files
authored
Merge pull request #49 from Mastercard/cormacdalton-publish
Create python-publish.yml
2 parents 9b7fd6c + fafd45f commit 9b963b7

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
release-build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.8"
20+
21+
- name: Install dependencies
22+
run: |
23+
pip3 install -r requirements.txt
24+
pip3 install pytest
25+
pip3 install twine
26+
27+
- name: Build and Test
28+
run: |
29+
python3 setup.py build
30+
pytest
31+
32+
- name: Publish to PyPI
33+
run: |
34+
python3 setup.py sdist bdist_wheel &> package_setup.log
35+
curl --connect-timeout 10 -kI https://test.pypi.org
36+
twine upload -u ${{ secrets.USER }} -p ${{ secrets.PASS }} 'dist/*'
37+

client_encryption/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
__version__ = "1.23.2"
3+
__version__ = "1.23.3"

0 commit comments

Comments
 (0)