Skip to content

Commit

Permalink
Merge pull request #11 from derkweijers/releases
Browse files Browse the repository at this point in the history
Releases
  • Loading branch information
derkweijers authored Feb 12, 2024
2 parents dd195c1 + 5bfe6fc commit 0e3b64e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,25 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
python-version: 3.11

- name: Install Poetry
run: |
pip install ${{ github.event.inputs.version_rule }}
pip install poetry
- name: Update the version
id: bump_version
run: |
poetry version minor
poetry version ${{ github.event.inputs.version_rule }}
echo VERSION=$(poetry version -s) >> "$GITHUB_OUTPUT"
- name: Build and publish
run: |
poetry install --no-dev
poetry build
poetry publish
# poetry publish
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
with:
message: "Bump version to ${{ steps.bump_version.outputs.VERSION }}"
add: "pyproject.toml"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bookbrary"
version = "0.1.0"
version = "0.2.0"
description = ""
authors = ["Derk Weijers <derk@weijers.xyz>"]
readme = "README.md"
Expand Down

0 comments on commit 0e3b64e

Please sign in to comment.