From fb48eebe2259de2303fcda46f3cf4fff4e7d8e65 Mon Sep 17 00:00:00 2001 From: viarotel Date: Mon, 20 Nov 2023 08:57:43 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=99=BB=EF=B8=8F=20Update=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-pages.yml | 11 ++++++----- .github/workflows/release-please.yml | 2 +- .github/workflows/sync-gitee.yml | 2 ++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-pages.yml b/.github/workflows/release-pages.yml index 83d00d2..61495b2 100644 --- a/.github/workflows/release-pages.yml +++ b/.github/workflows/release-pages.yml @@ -1,9 +1,10 @@ name: release-pages on: - push: - branches: - - main + workflow_run: + workflows: ['release-please'] + types: + - completed permissions: contents: write @@ -16,7 +17,7 @@ jobs: uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v4 with: node-version: 16.x @@ -55,4 +56,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4 with: branch: docs - folder: dist \ No newline at end of file + folder: dist diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index c81a2d0..5ddc8b9 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -17,4 +17,4 @@ jobs: with: release-type: node package-name: release-please-action - token: ${{ secrets.ACCESS_TOKEN }} \ No newline at end of file + token: ${{ secrets.ACCESS_TOKEN }} diff --git a/.github/workflows/sync-gitee.yml b/.github/workflows/sync-gitee.yml index f2d5a4b..2f0eaff 100644 --- a/.github/workflows/sync-gitee.yml +++ b/.github/workflows/sync-gitee.yml @@ -1,9 +1,11 @@ name: sync-gitee + on: workflow_run: workflows: ['release-pages'] types: - completed + jobs: sync-to-gitee: runs-on: ubuntu-latest