File tree Expand file tree Collapse file tree 1 file changed +2
-48
lines changed
Expand file tree Collapse file tree 1 file changed +2
-48
lines changed Original file line number Diff line number Diff line change @@ -29,56 +29,10 @@ jobs:
2929 - name : Setup Node
3030 uses : actions/setup-node@v3
3131 with :
32- node-version : " 16 "
32+ node-version : " 20 "
3333 cache : ${{ steps.detect-package-manager.outputs.manager }}
3434 - run : npm ci
35- - run : npm run build --if-present
36-
37-
38- - shell : bash
39- name : SYNC
40- env :
41- AZURE : ${{ secrets.AZURE }}
42- GIEEREPO : ${{ secrets.GIEEREPO }}
43- AZUREREPO : ${{ secrets.AZUREREPO }}
44- run : |
45- mkdir -p ~/.ssh
46- echo ${AZURE} | base64 -d > id_rsa_azure
47- mv id_rsa_azure ~/.ssh/id_rsa_azure
48- chmod 700 ~/.ssh
49- chmod 600 ~/.ssh/id_rsa_azure
50- echo SG9zdCBnaXRlZS5jb20KICAgIEhvc3ROYW1lIGdpdGVlLmNvbQogICAgVXNlciBnaXQKICAgIElkZW50aXR5RmlsZSB+Ly5zc2gvaWRfcnNhX2dpdGVlCiAgICBTdHJpY3RIb3N0S2V5Q2hlY2tpbmcgbm8KSG9zdCB2cy1zc2gudmlzdWFsc3R1ZGlvLmNvbQogICAgSG9zdE5hbWUgdnMtc3NoLnZpc3VhbHN0dWRpby5jb20KICAgIFVzZXIgZ2l0CiAgICBJZGVudGl0eUZpbGUgfi8uc3NoL2lkX3JzYV9henVyZQogICAgU3RyaWN0SG9zdEtleUNoZWNraW5nIG5v | base64 -d > ~/.ssh/config
51-
52-
53- ls -al ~/.ssh
54-
55- echo "SYNC to Other "
56- git config --global user.email "vi"
57- git config --global user.name "github-action"
58-
59-
60- git status
61- rm -rf .git
62- git init
63- git add .
64- git commit -m "$(date)"
65- git checkout -b tmp
66- git remote add vs ${AZUREREPO}
67- git push vs tmp:master -f --quiet
68-
69- cd ./www
70- TZ="Asia/Shanghai" date "+%Y-%m-%d %H:%M:%S" > date.html
71- git init
72- git config --global user.name "github-actions[bot]"
73- git config --global user.email "github-actions[bot]@users.noreply.github.com"
74- git checkout --orphan page
75-
76-
77- git add .
78- git commit -m "$(TZ="Asia/Shanghai" date "+%Y-%m-%d %H:%M:%S")"
79- git push --force "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" page
80-
81-
35+ - run : npm run build --if-present
8236
8337
8438
You can’t perform that action at this time.
0 commit comments