创建 2024-03-04vscode代码片段自动转图标禁用.md #17
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: ci | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 进入任务 | |
uses: actions/checkout@v3 | |
- name: 安装nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: 安装依赖 | |
run: npm install | |
- name: 打包项目 | |
run: yarn run build | |
- name: 项目部署 | |
uses: easingthemes/[email protected] | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }} | |
REMOTE_HOST: ${{ secrets.HOST }} | |
REMOTE_USER: ${{ secrets.USERNAME }} | |
REMOTE_POR: '22' | |
SOURCE: 'build/' | |
TARGET: ${{ secrets.REMOTE_PATH }} | |
# ARGS: '-rltgoDzvO' | |
# - name: 部署项目 | |
# uses: appleboy/[email protected] | |
# with: | |
# host: 124.221.253.146 | |
# username: Administrator | |
# password: zswZSW20001020 | |
# port: 22 | |
# source: '/src/.vuepress/dist' | |
# target: '/wwwroot/blog' | |
# - name: 部署项目 | |
# uses: SamKirkland/[email protected] | |
# with: | |
# server: ${{ secrets.ftp_server }} | |
# username: ${{ secrets.ftp_user }} | |
# password: ${{ secrets.ftp_pwd }} | |
# local-dir: ./src/.vuepress/dist/ | |
# server-dir: ./ |