Skip to content

Commit

Permalink
fix: properly assign version in release-please (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jan 23, 2024
1 parent 2aedb64 commit 23c9d3f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: GoogleCloudPlatform/release-please-action@v3
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
release-type: python
package-name: varfish-cli
token: ${{ secrets.BOT_TOKEN }}

- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
with:
fetch-depth: 0

- name: Set up Python
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -37,7 +34,7 @@ jobs:
- name: Publish to PyPI
if: ${{ steps.release.outputs.release_created }}
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.6.1"
}
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"release-type": "python",
"package-name": "varfish-cli",
"version-file": "varfish_cli/version.py"
}
}
}
2 changes: 1 addition & 1 deletion varfish_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from ._version import __version__
from .version import __version__
File renamed without changes.

0 comments on commit 23c9d3f

Please sign in to comment.