File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 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+ }'
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " bitpay"
7- version = " 7.0.4 "
7+ version = " 7.0.5 "
88authors = [
99 {
name =
" Antonio Buedo" ,
email =
" [email protected] " },
1010]
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments