Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Nov 5, 2023
1 parent 4a11a08 commit 0293b4a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: CI

on:
push:
Expand All @@ -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"
7 changes: 0 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0293b4a

Please sign in to comment.