File tree Expand file tree Collapse file tree 3 files changed +26
-73
lines changed
Expand file tree Collapse file tree 3 files changed +26
-73
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,24 @@ mkdir -p $DRAFT/UCD/ucd
2121mkdir -p $DRAFT /zipped
2222cp -r $UNITOOLS_DATA /ucd/dev/* $DRAFT /UCD/ucd
2323rm -r $DRAFT /UCD/ucd/Unihan
24- rm -r $DRAFT /UCD/ucd/emoji
2524mv $DRAFT /UCD/ucd/version-ReadMe.txt $DRAFT /UCD/ReadMe.txt
2625mv $DRAFT /UCD/ucd/zipped-ReadMe.txt $DRAFT /zipped/ReadMe.txt
2726
27+ if [ $MODE = " alpha" ]; then
28+ mkdir -p $DRAFT /emoji
29+ cp $UNITOOLS_DATA /emoji/dev/* $DRAFT /emoji
30+
31+ mkdir -p $DRAFT /idna
32+ cp $UNITOOLS_DATA /idna/dev/* $DRAFT /idna
33+
34+ mkdir -p $DRAFT /idna2008derived
35+ rm $DRAFT /idna2008derived/*
36+ cp $UNITOOLS_DATA /idna/idna2008derived/Idna2008-$UNI_VER .txt $DRAFT /idna2008derived
37+ cp $UNITOOLS_DATA /idna/idna2008derived/ReadMe.txt $DRAFT /idna2008derived
38+ else
39+ rm -r $DRAFT /UCD/ucd/emoji
40+ fi
41+
2842# Update the readmes in-place (-i) as set up above.
2943find $DRAFT -name ' *ReadMe.txt' | xargs sed -i -f $DRAFT /sed-readmes.txt
3044
Original file line number Diff line number Diff line change 11# See https://github.com/unicode-org/unicodetools/blob/main/docs/data-workflow.md#publication
22
3- # Test locally with https://github.com/nektos/act: act --workflows .github/workflows/publish-ucd.yml
3+ # Test locally with https://github.com/nektos/act:
4+ # act --workflows .github/workflows/publish-ucd.yml --input mode=snapshot
45
56name : Publish UCD
67
78on :
89 workflow_dispatch :
10+ inputs :
11+ mode :
12+ description : Publication mode
13+ type : choice
14+ options :
15+ - snapshot
16+ - alpha
17+ default : snapshot
918
1019env :
1120 COPY_YEAR : " 2024"
1221 UNI_VER : " 17.0.0"
1322 EMOJI_VER : " 17.0"
23+ MODE : ${{ inputs.mode }}
1424
1525jobs :
1626 build :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments