Skip to content

Commit 4d7cad1

Browse files
committed
Alpha mode
1 parent f85bd3f commit 4d7cad1

File tree

3 files changed

+26
-73
lines changed

3 files changed

+26
-73
lines changed

.github/workflows/publish-ucd.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,24 @@ mkdir -p $DRAFT/UCD/ucd
2121
mkdir -p $DRAFT/zipped
2222
cp -r $UNITOOLS_DATA/ucd/dev/* $DRAFT/UCD/ucd
2323
rm -r $DRAFT/UCD/ucd/Unihan
24-
rm -r $DRAFT/UCD/ucd/emoji
2524
mv $DRAFT/UCD/ucd/version-ReadMe.txt $DRAFT/UCD/ReadMe.txt
2625
mv $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.
2943
find $DRAFT -name '*ReadMe.txt' | xargs sed -i -f $DRAFT/sed-readmes.txt
3044

.github/workflows/publish-ucd.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
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

56
name: Publish UCD
67

78
on:
89
workflow_dispatch:
10+
inputs:
11+
mode:
12+
description: Publication mode
13+
type: choice
14+
options:
15+
- snapshot
16+
- alpha
17+
default: snapshot
918

1019
env:
1120
COPY_YEAR: "2024"
1221
UNI_VER: "17.0.0"
1322
EMOJI_VER: "17.0"
23+
MODE: ${{ inputs.mode }}
1424

1525
jobs:
1626
build:

pub/copy-alpha-to-draft.sh

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)