From 150046698dffe09d560be7b4f2482baed7e0c4a3 Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Mon, 11 Nov 2024 22:27:55 +0000 Subject: [PATCH 1/3] Replace set-output with $GITHUB_OUTPUT [cd build] Per https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- build_tools/github/check_build_trigger.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/github/check_build_trigger.sh b/build_tools/github/check_build_trigger.sh index 365c525..8c55ad1 100644 --- a/build_tools/github/check_build_trigger.sh +++ b/build_tools/github/check_build_trigger.sh @@ -9,5 +9,5 @@ COMMIT_MSG=$(git log --no-merges -1 --oneline) if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" || "$GITHUB_EVENT_NAME" == "release" || "$COMMIT_MSG" =~ "[cd build]" ]]; then - echo "::set-output name=build::true" + echo "build=true" >> $GITHUB_OUTPUT fi From d6a05ffd8bc16c438bbee77fe84bf0461e1d8e63 Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Mon, 11 Nov 2024 22:31:30 +0000 Subject: [PATCH 2/3] Update download/upload-artifact actions [cd build] --- .github/workflows/build-python-wheels.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-python-wheels.yml b/.github/workflows/build-python-wheels.yml index 5ad4449..26c8a40 100644 --- a/.github/workflows/build-python-wheels.yml +++ b/.github/workflows/build-python-wheels.yml @@ -22,8 +22,7 @@ on: - '.github/workflows/build-python-wheels.yml' release: types: [published] - # Manual run - workflow_dispatch: {} + workflow_dispatch: {} # manual run jobs: echo_github_env: @@ -118,7 +117,7 @@ jobs: CIBW_ARCHS_WINDOWS: "AMD64 x86" - name: Store artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: ./wheelhouse/*.whl @@ -140,7 +139,7 @@ jobs: cd nlpo3-python bash ../build_tools/github/build_source.sh - name: Store artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: nlpo3-python/dist/*.tar.gz @@ -154,7 +153,7 @@ jobs: #if: github.event_name == 'push' && startsWith(github.event.ref, 'v') steps: - name: Retrieve artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: artifact path: dist From 6d65be0e4c8c50e96c9096694a5c3d1a9c7eaf2a Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Mon, 11 Nov 2024 22:41:06 +0000 Subject: [PATCH 3/3] Revert upload/download actions to v3 --- .github/workflows/build-python-wheels.yml | 6 +++--- nlpo3-python/Cargo.toml | 2 +- nlpo3-python/pyproject.toml | 2 +- nlpo3-python/setup.cfg | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-python-wheels.yml b/.github/workflows/build-python-wheels.yml index 26c8a40..beeef63 100644 --- a/.github/workflows/build-python-wheels.yml +++ b/.github/workflows/build-python-wheels.yml @@ -117,7 +117,7 @@ jobs: CIBW_ARCHS_WINDOWS: "AMD64 x86" - name: Store artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl @@ -139,7 +139,7 @@ jobs: cd nlpo3-python bash ../build_tools/github/build_source.sh - name: Store artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: path: nlpo3-python/dist/*.tar.gz @@ -153,7 +153,7 @@ jobs: #if: github.event_name == 'push' && startsWith(github.event.ref, 'v') steps: - name: Retrieve artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: artifact path: dist diff --git a/nlpo3-python/Cargo.toml b/nlpo3-python/Cargo.toml index 130feab..327daf4 100644 --- a/nlpo3-python/Cargo.toml +++ b/nlpo3-python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nlpo3-python" -version = "1.3.1" +version = "1.3.2-dev" edition = "2018" license = "Apache-2.0" authors = [ diff --git a/nlpo3-python/pyproject.toml b/nlpo3-python/pyproject.toml index e31f84b..0c688e6 100644 --- a/nlpo3-python/pyproject.toml +++ b/nlpo3-python/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "nlpo3" -version = "1.3.1" +version = "1.3.2-dev" description = "Python binding for nlpO3 Thai language processing library in Rust" readme = "README.md" requires-python = ">=3.7" diff --git a/nlpo3-python/setup.cfg b/nlpo3-python/setup.cfg index 6c318dd..e558d5d 100644 --- a/nlpo3-python/setup.cfg +++ b/nlpo3-python/setup.cfg @@ -3,7 +3,7 @@ [metadata] name = nlpo3 -version = 1.3.1 +version = 1.3.2-dev description = Python binding for nlpO3 Thai language processing library long_description = Python binding for nlpO3, a Thai natural language processing library in Rust.