修复nodejs高版本ssl报错问题,打包 #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 同步到 LuckyServer | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 20 * * *' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: install | |
# https://stackoverflow.com/questions/75959563/node-js-err-ossl-evp-unsupported-error-when-running-npm-run-start | |
run: yarn install && export NODE_OPTIONS=--openssl-legacy-provider | |
- name: Build | |
run: yarn build | |
- name: 上传到 LuckyServer | |
uses: SamKirkland/FTP-Deploy-Action@2.0.0 | |
env: | |
FTP_SERVER: ipv4.luckykeeper.site | |
FTP_USERNAME: love69doc_luckykeeper_site | |
FTP_PASSWORD: ${{ secrets.MIRROR_FTP_PS }} | |
# port: 21 | |
LOCAL_DIR: docs/.vuepress/dist | |
REMOTE_DIR: /Doc | |
ARGS: --delete --transfer-all --exclude=logreport --verbose |