diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eae9680..7328590 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,7 +78,35 @@ jobs: with: fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: 'pip' + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + version: 1.8.3 + virtualenvs-create: true + virtualenvs-in-project: true + + - name: Install dependencies + run: poetry install + - name: Python Semantic Release - uses: python-semantic-release/python-semantic-release@master + id: semantic-release + uses: python-semantic-release/python-semantic-release@v9.1.1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish release to GitHub + if: steps.semantic-release.outputs.released == 'true' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "Released version ${{ steps.semantic-release.outputs.version }}" + gh release create v${{ steps.semantic-release.outputs.version }} \ + --title "v${{ steps.semantic-release.outputs.version }}" \ + --notes "${{ steps.semantic-release.outputs.release_notes }}" \ + dist/* \ No newline at end of file diff --git a/README.md b/README.md index e69de29..7e6bd53 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,13 @@ +# Bingo + +A simple bingo game board generator using NiceGUI. + +## Features + +- Generate bingo boards with custom phrases +- Share view-only boards +- Interactive gameplay + +## Development + +See CLAUDE.md for detailed development instructions. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a28c0ce..9ae7c80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,17 +34,18 @@ python_functions = "test_*" addopts = "--cov=src" [tool.semantic_release] -version_variable = ["pyproject.toml:version"] +version_toml = ["pyproject.toml:tool.poetry.version"] branch = "main" changelog_file = "CHANGELOG.md" build_command = "poetry build" dist_path = "dist/" upload_to_pypi = false +upload_to_repository = false upload_to_release = true -commit_subject = "chore(release): {version}" -commit_message = "chore(release): version {version} [skip ci]" +commit_message = "chore(release): {version} [skip ci]" commit_author = "semantic-release " major_on_zero = false +tag_format = "v{version}" [tool.black] line-length = 88