新增Gitea工作流以部署到Liteyuki页面
Some checks failed
Deploy to Liteyuki pages / build (push) Failing after 1m3s

This commit is contained in:
远野千束 2025-03-10 23:24:29 +08:00
parent bd591a6643
commit 8084eed7ae
2 changed files with 2664 additions and 0 deletions

View File

@ -0,0 +1,48 @@
name: Deploy to Liteyuki pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
statuses: write
concurrency:
group: pages
cancel-in-progress: false
env:
MELI_SITE: "ef87a735-f120-433e-bfbb-9166cfa6a6bf"
jobs:
# 构建工作
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # 如果未启用 lastUpdated则不需要
- name: 安装 pnpm 构建依赖
uses: pnpm/action-setup@v2
with:
run_install: true
version: 8
- name: 构建
run: |-
pnpm install
pnpm run
- name: "发布"
run: |
npx -p "@getmeli/cli" meli upload ./dist \
--url "https://pages.liteyuki.icu" \
--site "$MELI_SITE" \
--token "$MELI_TOKEN" \
--release "$GITEA_SHA"
env:
MELI_TOKEN: ${{ secrets.MELI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}

2616
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff