From ac1579e96d69eede2bb40fc2fca9669cf665ba7c Mon Sep 17 00:00:00 2001 From: hegotit <153287866+hegotit@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:35:00 +0800 Subject: [PATCH] feat: Run Go script in CI --- .github/workflows/release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c9dc55..20f5b1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,22 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Install dependencies + run: | + cd others/script + go mod tidy + + - name: Build and Run + run: | + cd others/script + echo "Running script with custom Rime path..." + go run main.go --rime_path "${{ github.workspace }}" --auto_confirm + - name: Pack dicts run: | mkdir dist @@ -58,7 +74,7 @@ jobs: - `LICENSE.txt`:开源协议 tag_name: nightly - name: "nightly build" + name: "Nightly Build" make_latest: true files: | dist/*