Skip to content

Commit b59395b

Browse files
authored
Merge pull request #180 from bobbrodie/7.0.x
Publish changelog on release
2 parents d34d7b6 + 763bb71 commit b59395b

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,30 @@ jobs:
3333
- name: Publish package distributions to PyPI
3434
uses: pypa/gh-action-pypi-publish@release/v1
3535
with:
36-
packages_dir: artifact/
36+
packages_dir: artifact/
37+
38+
readme-changelog:
39+
name: Publish changelog to Readme
40+
needs: ['pypi-publish']
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Extract release data
44+
id: release
45+
run: |
46+
echo "title=$(echo "${{ github.event.release.name }}" | sed 's/"/\\"/g')" >> $GITHUB_OUTPUT
47+
echo "body=$(echo "${{ github.event.release.body }}" | sed ':a;N;$!ba;s/\n/\\n/g' | sed 's/"/\\"/g')" >> $GITHUB_OUTPUT
48+
49+
- name: Publish changelog to Readme
50+
env:
51+
README_API_KEY: ${{ secrets.README_API_KEY }}
52+
run: |
53+
curl --location 'https://api.readme.com/v2/changelogs' \
54+
--header "Authorization: Bearer $README_API_KEY" \
55+
--header 'Content-Type: application/json' \
56+
--data '{
57+
"body": "${{ steps.release.outputs.body }}",
58+
"title": "Python Unified SDK ${{ steps.release.outputs.title }}",
59+
"privacy": {
60+
"view": "public"
61+
}
62+
}'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bitpay"
7-
version = "7.0.4"
7+
version = "7.0.5"
88
authors = [
99
{ name="Antonio Buedo", email="[email protected]" },
1010
]

src/bitpay/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ class Config(Enum):
55
TEST_URL = "https://test.bitpay.com/"
66
PROD_URL = "https://bitpay.com/"
77
BITPAY_API_VERSION = "2.0.0"
8-
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v7.0.4"
8+
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v7.0.5"
99
BITPAY_API_FRAME = "std"
1010
BITPAY_API_FRAME_VERSION = "1.0.0"

0 commit comments

Comments
 (0)