ci: local checkout (no external actions)
Some checks are pending
Build and Deploy (app.xpcool.com) / build-and-deploy (push) Waiting to run

This commit is contained in:
xpcool 2026-08-22 14:30:32 +08:00
parent 6c739455e4
commit 8856fd0f9b

View File

@ -1,3 +1,4 @@
# deployed by gitea act_runner (push to main/dev triggers this)
name: Build and Deploy (app.xpcool.com) name: Build and Deploy (app.xpcool.com)
on: on:
@ -9,13 +10,22 @@ jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install git (node image has no git) - name: Install git
run: apt-get update && apt-get install -y git run: |
apt-get update
apt-get install -y git
- name: Checkout - name: Checkout (local Gitea, no external actions)
uses: actions/checkout@v4 run: |
git clone --depth 1 https://oauth2:${{ github.token }}@git.xpcool.com/${{ github.repository }}.git .
git checkout ${{ github.sha }}
- name: Use npmmirror registry (faster in CN)
run: npm config set registry https://registry.npmmirror.com
- name: Enable pnpm via corepack - name: Enable pnpm via corepack
env:
COREPACK_NPM_REGISTRY: https://registry.npmmirror.com
run: | run: |
corepack enable corepack enable
corepack prepare pnpm@10 --activate corepack prepare pnpm@10 --activate