File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 4848 - name : Notify
4949 run : |
5050 echo "- Updated: https://cldr-smoke.unicode.org/cldr/charts/${{ steps.setup.outputs.chartnum }}" >> $GITHUB_STEP_SUMMARY
51+ production :
52+ environment : production
53+ runs-on : ubuntu-latest
54+ steps :
55+ - name : get chart number
56+ id : setup
57+ # refs/heads/charts/49
58+ # steps.setup.outputs.chartnum
59+ run : |
60+ echo "chartnum="$(echo ${{ github.ref }} | cut -d/ -f4) | tee -a $GITHUB_OUTPUT
61+
62+ - uses : actions/checkout@v6
63+ with :
64+ sparse-checkout : ' docs/charts'
65+
66+ - name : check checkout
67+ run : du -sh docs/charts/${{ steps.setup.outputs.chartnum }}
68+
69+ - name : Setup ssh
70+ # For the host key verification of ssh behind rsync.
71+ run : |
72+ mkdir ~/.ssh
73+ echo "sarasvati.unicode.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGx+XeCMGtRbA7X26EVcYG41zQrZmM05Vw5I0zISPqz9f+94Vlm4P26hsmY/DCA1j4EMlbbiISqRqzbLfAz1s5s=" >> ~/.ssh/known_hosts
74+ echo "cldr-smoke.unicode.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKebRPtFh4wfiya5UX+8OGJorbdu66PeXASGLvgmSMgewsBF0LwS2r5qcMlv11LdSQh/PrP0gWndmG7bBOQOZj0=" >> ~/.ssh/known_hosts
75+ echo "${SSH_KEY}" | base64 -d > ~/.ssh/id_rsa
76+ md5sum ~/.ssh/id_rsa
77+ echo "Host ${{ vars.SSH_HOST }}" >> ~/.ssh/config
78+ echo " User ${{ vars.SSH_USER }}" >> ~/.ssh/config
79+ echo " Port ${{ vars.SSH_PORT }}" >> ~/.ssh/config
80+ echo " IdentityFile ${HOME}/.ssh/id_rsa" >> ~/.ssh/config
81+ cat ~/.ssh/config
82+ chmod -R go= ~/.ssh
83+ env :
84+ SSH_KEY : ${{ secrets.SSH_KEY }}
85+
86+ - name : Sync files to server
87+ run : |
88+ rsync --recursive --delete --delete-after --verbose --verbose \
89+ docs/charts/${{ steps.setup.outputs.chartnum }}/ \
90+ ${{ vars.SSH_HOST }}:public_html/cldr/charts/${{ steps.setup.outputs.chartnum }}
91+ - name : Notify
92+ run : |
93+ echo "- Updated: https://cldr-smoke.unicode.org/cldr/charts/${{ steps.setup.outputs.chartnum }}" >> $GITHUB_STEP_SUMMARY
5194concurrency :
5295 group : ${{ github.workflow }}-${{ github.ref }}
5396 cancel-in-progress : true
You can’t perform that action at this time.
0 commit comments