Files
DickHelper/.gitea/workflows/deploy-page.yml
Snowykami 86d61e737f
All checks were successful
Deploy to Liteyuki pages / build (push) Successful in 50s
修复部署工作流中的SHA引用,将GITHUB_SHA更改为GITEA_SHA,并添加GITEA_TOKEN环境变量
2025-03-10 23:33:19 +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 build
- 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 }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}