DickHelper/.gitea/workflows/deploy-page.yml
Snowykami 8084eed7ae
Some checks failed
Deploy to Liteyuki pages / build (push) Failing after 1m3s
新增Gitea工作流以部署到Liteyuki页面
2025-03-10 23:24:29 +08:00

48 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 }}