ci: 为项目添加CI/CD功能 #30

Manually merged
remilia merged 18 commits from ci/gitea-actions into master 2025-09-26 17:14:03 +08:00
Showing only changes of commit ef6877768a - Show all commits

View File

@ -26,7 +26,6 @@ jobs:
${{ runner.os }}-pnpm- ${{ runner.os }}-pnpm-
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
# Nuxt 构建缓存,加快二次构建
- name: Cache Nuxt build - name: Cache Nuxt build
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@ -36,7 +35,8 @@ jobs:
${{ runner.os }}-nuxt- ${{ runner.os }}-nuxt-
- name: Build project - name: Build project
run: pnpm run build run: pnpm run build
- name: Rsync build artifact to server - name: Deploy to server
if: github.ref == 'refs/heads/master'
uses: easingthemes/ssh-deploy@main uses: easingthemes/ssh-deploy@main
with: with:
ARGS: "-rlgoDzvc -i --delete" ARGS: "-rlgoDzvc -i --delete"