From 23e245bd8b422a66034c2a4a41bab838e09305c9 Mon Sep 17 00:00:00 2001 From: Ivan Sabelnikov Date: Tue, 7 Jul 2026 16:20:07 +0100 Subject: [PATCH 1/2] ci(#868k5bbdr): Publish to fury on push to master Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/publish.yaml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..f496c6c0 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,42 @@ +name: publish + +on: + push: + branches: + - master + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Establish Versioning, Tags, and Labels + id: vtl + uses: mapped/action-vtl@latest + with: + baseVersion: 1.0.0 + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + + - name: Install build deps + run: pip install poetry + + - name: Set version + run: poetry version "${{ steps.vtl.outputs.ver_semVerNoMeta }}" + + - name: Build + run: poetry build + + - name: Publish to fury + run: | + VERSION="${{ steps.vtl.outputs.ver_semVerNoMeta }}" + curl -F "package=@dist/betterproto-${VERSION}-py3-none-any.whl" \ + "https://${{ secrets.FURY_PUSH_TOKEN }}@push.fury.io/mapped/" + curl -F "package=@dist/betterproto-${VERSION}.tar.gz" \ + "https://${{ secrets.FURY_PUSH_TOKEN }}@push.fury.io/mapped/" From db39d2a70c2d5972c849cc2660f883e41d455359 Mon Sep 17 00:00:00 2001 From: Ivan Sabelnikov Date: Tue, 7 Jul 2026 16:26:30 +0100 Subject: [PATCH 2/2] ci(#868k5bbdr): Remove broken pre-commit hooks (no Java files, pkg_resources missing) Co-Authored-By: Claude Sonnet 4.6 --- .pre-commit-config.yaml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84082d00..00096731 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,16 +10,3 @@ repos: - id: ruff args: ["--select", "I", "src", "tests"] - - repo: https://github.com/PyCQA/doc8 - rev: 0.10.1 - hooks: - - id: doc8 - additional_dependencies: - - toml - - - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.14.0 - hooks: - - id: pretty-format-java - args: [--autofix, --aosp] - files: ^.*\.java$