Compare commits
2 Commits
ff2f21f145
...
8e34bdd8d8
Author | SHA1 | Date | |
---|---|---|---|
8e34bdd8d8 | |||
747495836f |
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -78,4 +78,21 @@ jobs:
|
|||||||
run: bash ./patch-ui-pro.zsh
|
run: bash ./patch-ui-pro.zsh
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm run build
|
run: pnpm run build
|
||||||
|
|
||||||
|
# 1. 登录 registry
|
||||||
|
- name: Login to private registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: reg.lijue.net:5888
|
||||||
|
username: ${{ secrets.REGISTRY_USER }} # 在仓库里事先存好
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
# 2. 构建并推送
|
||||||
|
- name: Build & push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: reg.lijue.net:5888/docs/docs:latest
|
23
.github/workflows/pkg.pr.new.yml
vendored
23
.github/workflows/pkg.pr.new.yml
vendored
@@ -1,23 +0,0 @@
|
|||||||
name: Publish Any Commit
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install pnpm
|
|
||||||
uses: pnpm/action-setup@v4
|
|
||||||
with:
|
|
||||||
run_install: false
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: lts/*
|
|
||||||
cache: pnpm
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
- run: pnpx pkg-pr-new publish
|
|
Reference in New Issue
Block a user