From 6bf6d5b6f8928f7eaf0aec88afa76cd6f99f12fc Mon Sep 17 00:00:00 2001 From: Arthur Kim Date: Wed, 31 Jul 2024 20:20:13 +0900 Subject: [PATCH 1/2] Add wheel (#29) --- .github/workflows/wheels.yml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/wheels.yml diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml new file mode 100644 index 0000000..ba73cf6 --- /dev/null +++ b/.github/workflows/wheels.yml @@ -0,0 +1,51 @@ +name: Build + +on: + push: + tags: + - v* + +jobs: + build_dist: + name: Build source distribution + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build dist and wheel + run: pipx run build --sdist --wheel + + - uses: actions/upload-artifact@v4 + with: + name: cibw-dist + path: dist/* + + # upload_pypi: + # needs: [build_dist] + # runs-on: [self-hosted, linux, x64, cpu-only] + # environment: release + # permissions: + # id-token: write + # steps: + # - uses: actions/download-artifact@v4 + # with: + # pattern: cibw-* + # path: dist + # merge-multiple: true + + # - uses: pypa/gh-action-pypi-publish@release/v1 + + upload_release: + needs: [build_dist] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + with: + pattern: cibw-* + path: dist + merge-multiple: true + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: dist/* From c8fbe2514cc38192058098b7ade91889b2887cdf Mon Sep 17 00:00:00 2001 From: Sumin Byeon Date: Wed, 31 Jul 2024 20:21:24 +0900 Subject: [PATCH 2/2] build: Update version --- hanja/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hanja/__init__.py b/hanja/__init__.py index 26aab65..36090f4 100644 --- a/hanja/__init__.py +++ b/hanja/__init__.py @@ -9,7 +9,7 @@ __all__ = ["is_hanja", "is_valid_mode", "split_hanja", "translate"] __author__ = "Sumin Byeon" __email__ = "suminb@gmail.com" -__version__ = "0.14.1" +__version__ = "0.15.0" # Copied from https://wiki.python.org/moin/PythonDecoratorLibrary