diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87a53862f..335502f64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: ci +name: CI on: push: @@ -7,28 +7,38 @@ on: jobs: build-and-deploy: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] # macos-latest, windows-latest + node: [18] steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Set node version to ${{ matrix.node-version }} uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: ${{ matrix.node-version }} + + - run: corepack enable + + - name: Setup + run: npm i -g @antfu/ni + + - name: Install + run: nci - - name: Build Project - run: | - yarn install - yarn run build + - name: Build + run: nr build - name: SSH Deploy - uses: easingthemes/ssh-deploy@v2.2.11 + uses: easingthemes/ssh-deploy@v4.1.10 env: SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} - ARGS: '-avzr --delete' - SOURCE: 'build' + ARGS: "-avzr --delete" + SOURCE: "build" REMOTE_HOST: ${{ secrets.REMOTE_HOST }} - REMOTE_USER: 'root' - TARGET: '/www/wwwroot/blog' + REMOTE_USER: "root" + TARGET: "/www/wwwroot/blog" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 964029d41..7c76b8cd0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -79,9 +79,6 @@ devDependencies: '@iconify/react': specifier: ^4.1.1 version: 4.1.1(react@18.2.0) - '@tsconfig/docusaurus': - specifier: ^1.0.7 - version: 1.0.7 '@typescript-eslint/eslint-plugin': specifier: ^5.62.0 version: 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.53.0)(typescript@5.2.2) @@ -3075,10 +3072,6 @@ packages: engines: {node: '>=10.13.0'} dev: false - /@tsconfig/docusaurus@1.0.7: - resolution: {integrity: sha512-ffTXxGIP/IRMCjuzHd6M4/HdIrw1bMfC7Bv8hMkTadnePkpe0lG0oDSdbRpSDZb2rQMAgpbWiR10BvxvNYwYrg==} - dev: true - /@types/acorn@4.0.6: resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==} dependencies: