Skip to content

Commit 22f9ce4

Browse files
committed
disable ci build
1 parent 311fb9c commit 22f9ce4

File tree

3 files changed

+876
-198
lines changed

3 files changed

+876
-198
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Build and Release
22

33
on:
44
push:
5+
branches:
6+
- master
57
tags:
68
- '[0-9]+.*'
79
workflow_dispatch:
8-
repository_dispatch:
9-
types: [chaizi_update]
10+
# repository_dispatch:
11+
# types: [chaizi_update]
1012

1113
jobs:
1214
build:
@@ -17,7 +19,6 @@ jobs:
1719
uses: actions/checkout@v4
1820
with:
1921
token: ${{ secrets.TOKEN }}
20-
ref: 'build'
2122
fetch-depth: '0'
2223
submodules: true
2324

@@ -26,12 +27,12 @@ jobs:
2627
git config --global user.name "github-actions[bot]"
2728
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2829
29-
- name: Update submodule
30-
if: github.event_name == 'repository_dispatch'
31-
run: |
32-
cd dict
33-
git checkout master
34-
git pull
30+
# - name: Update submodule
31+
# if: github.event_name == 'repository_dispatch'
32+
# run: |
33+
# cd dict
34+
# git checkout master
35+
# git pull
3536

3637
- name: Update tag
3738
if: startsWith(github.ref, 'refs/tags/')
@@ -42,41 +43,42 @@ jobs:
4243
(gc radical.schema.yaml -Raw) -replace 'version: "\d\.\d\.\d"',"version: `"${{ github.ref_name }}`"" | Out-File radical.schema.yaml
4344
(gc radical_pinyin.schema.yaml -Raw) -replace 'version: "\d\.\d\.\d"',"version: `"${{ github.ref_name }}`"" | Out-File radical_pinyin.schema.yaml
4445
45-
- name: Update build branch
46-
run: |
47-
$Status = git status --porcelain
48-
if ( $Status ) {
49-
"Update submodule"
50-
$info = (irm https://whatthecommit.com/index.txt).trim()
51-
git add --all
52-
git commit -m "$info" && git push origin build
53-
}
46+
# - name: Update build branch
47+
# run: |
48+
# $Status = git status --porcelain
49+
# if ( $Status ) {
50+
# "Update submodule"
51+
# $info = (irm https://whatthecommit.com/index.txt).trim()
52+
# git add --all
53+
# git commit -m "$info" && git push origin build
54+
# }
5455

55-
- name: Set up Python
56-
uses: actions/setup-python@v5
57-
with:
58-
python-version: '3.x'
59-
cache: 'pip'
56+
# - name: Set up Python
57+
# uses: actions/setup-python@v5
58+
# with:
59+
# python-version: '3.x'
60+
# cache: 'pip'
6061

61-
- name: Build
62-
run: |
63-
make
62+
# - name: Build
63+
# run: |
64+
# make
6465

6566
- name: Update
6667
run: |
6768
$ErrorActionPreference = 'Break'
6869
# $CommitInfo = Get-Date -UFormat %s
69-
$CommitInfo = (irm https://whatthecommit.com/index.txt).trim()
70+
# $CommitInfo = (irm https://whatthecommit.com/index.txt).trim()
7071
71-
git checkout master
72-
cp gen/radical_pinyin.dict.yaml , gen/radical_pinyin.schema.yaml
73-
cp gen/radical_flypy.dict.yaml, gen/radical.schema.yaml
74-
$Status = git status --porcelain
75-
if ( $Status ) {
76-
"Push to master branch"
77-
git add --all
78-
git commit -m "$CommitInfo" && git push origin master
79-
}
72+
# git checkout master
73+
# cp gen/radical_pinyin.dict.yaml , gen/radical_pinyin.schema.yaml
74+
# cp gen/radical_flypy.dict.yaml, gen/radical.schema.yaml
75+
# $Status = git status --porcelain
76+
# if ( $Status ) {
77+
# "Push to master branch"
78+
# git add --all
79+
# git commit -m "$CommitInfo" && git push origin master
80+
# }
81+
mkdir gen
8082
Compress-Archive "radical_pinyin.schema.yaml","radical_pinyin.dict.yaml" "gen/radical_pinyin.zip"
8183
Compress-Archive "radical_flypy.dict.yaml","radical.schema.yaml" "gen/radical_flypy.zip"
8284
Compress-Archive "lua", "build" "gen/extra.zip"

0 commit comments

Comments
 (0)