File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to cldr-smoke
2+
3+ on :
4+ push :
5+ branches :
6+ - charts/*
7+ jobs :
18 preview :
29 environment : preview
310 runs-on : ubuntu-latest
411 steps :
12+ - name : get chart number
13+ id : setup
14+ # refs/heads/charts/49
15+ # steps.setup.outputs.chartnum
16+ run : |
17+ echo "chartnum="$(echo ${{ github.ref }} | cut -d/ -f4) | tee -a $GITHUB_OUTPUT
18+
19+ - uses : actions/checkout@v6
20+ with :
21+ sparse-checkout : ' docs/charts'
22+
23+ - name : check checkout
24+ run : du -sh docs/charts/${{ steps.setup.outputs.chartnum }}
25+
26+ - name : Setup ssh
27+ # For the host key verification of ssh behind rsync.
28+ run : |
29+ mkdir ~/.ssh
30+ echo "sarasvati.unicode.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGx+XeCMGtRbA7X26EVcYG41zQrZmM05Vw5I0zISPqz9f+94Vlm4P26hsmY/DCA1j4EMlbbiISqRqzbLfAz1s5s=" >> ~/.ssh/known_hosts
31+ echo "cldr-smoke.unicode.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKebRPtFh4wfiya5UX+8OGJorbdu66PeXASGLvgmSMgewsBF0LwS2r5qcMlv11LdSQh/PrP0gWndmG7bBOQOZj0=" >> ~/.ssh/known_hosts
32+ echo "${SSH_KEY}" | base64 -d > ~/.ssh/id_rsa
33+ md5sum ~/.ssh/id_rsa
34+ echo "Host ${{ vars.SSH_HOST }}" >> ~/.ssh/config
35+ echo " User ${{ vars.SSH_USER }}" >> ~/.ssh/config
36+ echo " Port ${{ vars.SSH_PORT }}" >> ~/.ssh/config
37+ echo " IdentityFile ${HOME}/.ssh/id_rsa" >> ~/.ssh/config
38+ cat ~/.ssh/config
39+ chmod -R go= ~/.ssh
40+ env :
41+ SSH_KEY : ${{ secrets.SSH_KEY }}
42+
43+ - name : Sync files to server
44+ run : |
45+ rsync --recursive --delete --delete-after --verbose --verbose \
46+ docs/charts/${{ steps.setup.outputs.chartnum }}/ \
47+ ${{ vars.SSH_HOST }}:public_html/cldr/charts/${{ steps.setup.outputs.chartnum }}
48+ - name : Notify
49+ run : |
50+ echo "- Updated: https://cldr-smoke.unicode.org/cldr/charts/${{ steps.setup.outputs.chartnum }}" >> $GITHUB_STEP_SUMMARY
51+ concurrency :
52+ group : ${{ github.workflow }}-${{ github.ref }}
53+ cancel-in-progress : true
You can’t perform that action at this time.
0 commit comments