Skip to content

Commit b6a8226

Browse files
Merge pull request #9 from OffendingCommit/feature/semantic-release
feat: configure semantic release for automated versioning
2 parents 812ae28 + 38b44d7 commit b6a8226

File tree

3 files changed

+47
-5
lines changed

3 files changed

+47
-5
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,35 @@ jobs:
7878
with:
7979
fetch-depth: 0
8080

81+
- name: Set up Python
82+
uses: actions/setup-python@v5
83+
with:
84+
python-version: "3.12"
85+
cache: 'pip'
86+
87+
- name: Install Poetry
88+
uses: snok/install-poetry@v1
89+
with:
90+
version: 1.8.3
91+
virtualenvs-create: true
92+
virtualenvs-in-project: true
93+
94+
- name: Install dependencies
95+
run: poetry install
96+
8197
- name: Python Semantic Release
82-
uses: python-semantic-release/python-semantic-release@master
98+
id: semantic-release
99+
uses: python-semantic-release/python-semantic-release@v9.1.1
83100
with:
84-
github_token: ${{ secrets.GITHUB_TOKEN }}
101+
github_token: ${{ secrets.GITHUB_TOKEN }}
102+
103+
- name: Publish release to GitHub
104+
if: steps.semantic-release.outputs.released == 'true'
105+
env:
106+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107+
run: |
108+
echo "Released version ${{ steps.semantic-release.outputs.version }}"
109+
gh release create v${{ steps.semantic-release.outputs.version }} \
110+
--title "v${{ steps.semantic-release.outputs.version }}" \
111+
--notes "${{ steps.semantic-release.outputs.release_notes }}" \
112+
dist/*

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Bingo
2+
3+
A simple bingo game board generator using NiceGUI.
4+
5+
## Features
6+
7+
- Generate bingo boards with custom phrases
8+
- Share view-only boards
9+
- Interactive gameplay
10+
11+
## Development
12+
13+
See CLAUDE.md for detailed development instructions.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,18 @@ python_functions = "test_*"
3434
addopts = "--cov=src"
3535

3636
[tool.semantic_release]
37-
version_variable = ["pyproject.toml:version"]
37+
version_toml = ["pyproject.toml:tool.poetry.version"]
3838
branch = "main"
3939
changelog_file = "CHANGELOG.md"
4040
build_command = "poetry build"
4141
dist_path = "dist/"
4242
upload_to_pypi = false
43+
upload_to_repository = false
4344
upload_to_release = true
44-
commit_subject = "chore(release): {version}"
45-
commit_message = "chore(release): version {version} [skip ci]"
45+
commit_message = "chore(release): {version} [skip ci]"
4646
commit_author = "semantic-release <semantic-release@users.noreply.github.com>"
4747
major_on_zero = false
48+
tag_format = "v{version}"
4849

4950
[tool.black]
5051
line-length = 88

0 commit comments

Comments
 (0)