From 1618dcc7a6f57dae089320c34929f7028a0d332f Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 17 Dec 2023 11:01:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20debian=20=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_docker_image.yml | 50 ++++++++++++------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index b1bd4330..3503199e 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -5,9 +5,10 @@ on: paths-ignore: - "*.md" branches: - - 'master' - - 'develop' - - 'debian' + - "master" + - "develop" + - "debian" + - "debian-dev" tags: - "v*" schedule: @@ -58,7 +59,7 @@ jobs: pnpm install --frozen-lockfile pnpm build:front pnpm build:back - + - name: copy to static repo env: GITHUB_REPO: github.com/${{ github.repository_owner }}/qinglong-static @@ -254,26 +255,27 @@ jobs: echo ${{ steps.docker_build_310.outputs.digest }} publish: - needs: build + if: ${{ github.ref_name == 'debian' }} + needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2 - with: - version: '8.3.1' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: "8.3.1" - - uses: actions/setup-node@v3 - with: - cache: 'pnpm' + - uses: actions/setup-node@v3 + with: + cache: "pnpm" - - name: build front and back - run: | - pnpm install --frozen-lockfile - pnpm build:front - pnpm build:back - - - name: publich npm package - run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc - npm publish + - name: build front and back + run: | + pnpm install --frozen-lockfile + pnpm build:front + pnpm build:back + + - name: publich npm package + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc + npm publish