From afa28441e9e99740e2933ce90a58a7ff5d435fbe Mon Sep 17 00:00:00 2001 From: Izumiko Date: Fri, 4 Aug 2023 20:27:16 +0800 Subject: [PATCH 1/7] update submodule --- rime-emoji | 2 +- rime-essay | 2 +- rime-pinyin-simp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rime-emoji b/rime-emoji index ca91e50..4806104 160000 --- a/rime-emoji +++ b/rime-emoji @@ -1 +1 @@ -Subproject commit ca91e504da44405b4d4c6ef35725af397bf08f0f +Subproject commit 48061047c9c48dd58f0003036905207a8e6bda4a diff --git a/rime-essay b/rime-essay index 8882482..e0519d0 160000 --- a/rime-essay +++ b/rime-essay @@ -1 +1 @@ -Subproject commit 8882482d07f38b5713ea3f49cb593eed94e671dd +Subproject commit e0519d0579722a0871efb68189272cba61a7350b diff --git a/rime-pinyin-simp b/rime-pinyin-simp index b0e84cd..52b9c75 160000 --- a/rime-pinyin-simp +++ b/rime-pinyin-simp @@ -1 +1 @@ -Subproject commit b0e84cda02c613ebdedc127a26131b3800f45a8e +Subproject commit 52b9c75f085479799553f2499c4f4c611d618cdf From 48281c83b84e80286d261853e68f24e7b9ca13de Mon Sep 17 00:00:00 2001 From: Izumiko Date: Fri, 4 Aug 2023 21:11:38 +0800 Subject: [PATCH 2/7] Add requirements.txt and GitHub actions. --- .github/dependabot.yml | 20 +++++++++++++++ .github/workflows/build.yml | 51 +++++++++++++++++++++++++++++++++++++ requirements.txt | 4 +++ 3 files changed, 75 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml create mode 100644 requirements.txt diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7c93b89 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,20 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + actions: + patterns: + - "*" + + - package-ecosystem: gitsubmodule + directory: / + schedule: + interval: weekly + groups: + submodules: + patterns: + - "*" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..828d3c5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +on: + workflow_dispatch: + pull_request: + schedule: + - cron: 0 8 1 */3 * + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + name: Build Rime Clover Pinyin + permissions: + contents: write + steps: + - name: Set variables + run: | + echo "RELEASE_NAME=Released on $(date +%Y%m%d)" >> $GITHUB_ENV + echo "TAG_NAME=$(date +%Y%m%d)" >> $GITHUB_ENV + shell: bash + + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: true + + - name: Prepare Environment + id: prepare + run: | + sudo apt-get update && sudo apt-get install -y git build-essential python3 wget unzip opencc librime-bin curl && wget https://raw.githubusercontent.com/rime/plum/master/rime-install && bash rime-install prelude && python3 -m pip install -U -r requirements.txt + + - name: Build + run: | + git submodule update --recursive --remote --rebase && bash ./build.sh && bash ./pack.sh `date +%y%m` + + - uses: actions/upload-artifact@v3 + with: + name: Packages for release + path: data/clover.schema-*.zip + + - name: Release + uses: softprops/action-gh-release@v1 + with: + name: ${{ env.RELEASE_NAME }} + tag_name: ${{ env.TAG_NAME }} + prerelease: true + files: | + data/clover.schema-*.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5236597 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +opencc>=1.1.6 +jieba>=0.42.1 +pypinyin>=0.49.0 +requests>=2.31.0 From 0ee9280386205577d3ccbcdd7a73b6a34f6320e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:39:45 +0000 Subject: [PATCH 3/7] Bump the submodules group with 1 update Bumps the submodules group with 1 update: [rime-emoji](https://github.com/rime/rime-emoji). - [Release notes](https://github.com/rime/rime-emoji/releases) - [Commits](https://github.com/rime/rime-emoji/compare/48061047c9c48dd58f0003036905207a8e6bda4a...a18b09997e7c457066e4c92adf249a4b3e235f9c) --- updated-dependencies: - dependency-name: rime-emoji dependency-type: direct:production dependency-group: submodules ... Signed-off-by: dependabot[bot] --- rime-emoji | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rime-emoji b/rime-emoji index 4806104..a18b099 160000 --- a/rime-emoji +++ b/rime-emoji @@ -1 +1 @@ -Subproject commit 48061047c9c48dd58f0003036905207a8e6bda4a +Subproject commit a18b09997e7c457066e4c92adf249a4b3e235f9c From cbe0181efc18a1dfb7be6441e2bcc667461bffbc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:40:41 +0000 Subject: [PATCH 4/7] Bump the actions group with 1 update Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 828d3c5..a9c7579 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: echo "TAG_NAME=$(date +%Y%m%d)" >> $GITHUB_ENV shell: bash - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: true From 6058929ddd25aab9054cdbba2e341320281c0114 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 12:21:18 +0000 Subject: [PATCH 5/7] Bump the actions group with 1 update Bumps the actions group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact). - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9c7579..6b35fd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: run: | git submodule update --recursive --remote --rebase && bash ./build.sh && bash ./pack.sh `date +%y%m` - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: Packages for release path: data/clover.schema-*.zip From e47a41358ffb347e28f2a25eaae90f425d2a26bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 12:50:30 +0000 Subject: [PATCH 6/7] Bump the submodules group with 1 update Bumps the submodules group with 1 update: [rime-emoji](https://github.com/rime/rime-emoji). Updates `rime-emoji` from `a18b099` to `be7d308` - [Release notes](https://github.com/rime/rime-emoji/releases) - [Commits](https://github.com/rime/rime-emoji/compare/a18b09997e7c457066e4c92adf249a4b3e235f9c...be7d308e42c4c4485229de37ec0afb7bafbfafc0) --- updated-dependencies: - dependency-name: rime-emoji dependency-type: direct:production dependency-group: submodules ... Signed-off-by: dependabot[bot] --- rime-emoji | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rime-emoji b/rime-emoji index a18b099..be7d308 160000 --- a/rime-emoji +++ b/rime-emoji @@ -1 +1 @@ -Subproject commit a18b09997e7c457066e4c92adf249a4b3e235f9c +Subproject commit be7d308e42c4c4485229de37ec0afb7bafbfafc0 From 54b0896a70ff8ef1e3e57b4f288d9d9b4e920d1b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:02:19 +0000 Subject: [PATCH 7/7] Bump the actions group with 1 update Bumps the actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release). Updates `softprops/action-gh-release` from 1 to 2 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b35fd4..fdcfdd1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: path: data/clover.schema-*.zip - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: ${{ env.RELEASE_NAME }} tag_name: ${{ env.TAG_NAME }}