File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 77 paths : [ 'pyproject.toml' ]
88
99jobs :
10+ ci :
11+ uses : ./.github/workflows/ci.yml
1012 check-version :
13+ needs : ci
1114 runs-on : ubuntu-latest
1215 outputs :
1316 version : ${{ steps.version.outputs.version }}
@@ -55,17 +58,27 @@ jobs:
5558 git push origin ${{ needs.check-version.outputs.version }}
5659
5760 - name : Create GitHub Release
58- uses : actions/create-release@v1
61+ run : |
62+ gh release create ${{ needs.check-version.outputs.version }} \
63+ --title "${{ needs.check-version.outputs.version }}" \
64+ --notes "Release ${{ needs.check-version.outputs.version }}
65+
66+ Auto-generated release from version bump in pyproject.toml"
5967 env :
6068 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69+
70+ - name : Set up Python for publishing
71+ uses : actions/setup-python@v5
72+ with :
73+ python-version : ' 3.11'
74+
75+ - name : Install uv
76+ uses : astral-sh/setup-uv@v3
77+
78+ - name : Build package
79+ run : uv build
80+
81+ - name : Publish to PyPI
82+ uses : pypa/gh-action-pypi-publish@release/v1
6183 with :
62- tag_name : ${{ needs.check-version.outputs.version }}
63- release_name : ${{ needs.check-version.outputs.version }}
64- draft : false
65- prerelease : false
66- body : |
67- Release ${{ needs.check-version.outputs.version }}
68-
69- Auto-generated release from version bump in pyproject.toml
70-
71- See [CHANGELOG](https://github.com/${{ github.repository }}/compare/${{ needs.check-version.outputs.version }}...HEAD) for details.
84+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 11[project ]
22name = " cocapi"
3- version = " 2.2.1 "
3+ version = " 2.2.2 "
44description = " A python wrapper around clash of clans api"
55authors = [{name = " Tony Benoy" , email = " me@tonybenoy.com" }]
66license = {text = " GPL-3.0" }
You can’t perform that action at this time.
0 commit comments