From 189b1bb4b9273c6019d743f5a6bf1747bb64a032 Mon Sep 17 00:00:00 2001 From: myltx Date: Mon, 9 Dec 2024 17:29:36 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-please.yml | 20 ++++++++++++++++++++ .github/workflows/sync-gitee.yml | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .github/workflows/sync-gitee.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..5ddc8b9 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,20 @@ +name: release-please + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: node + package-name: release-please-action + token: ${{ secrets.ACCESS_TOKEN }} diff --git a/.github/workflows/sync-gitee.yml b/.github/workflows/sync-gitee.yml new file mode 100644 index 0000000..8d172db --- /dev/null +++ b/.github/workflows/sync-gitee.yml @@ -0,0 +1,22 @@ +name: sync-gitee + +on: + workflow_run: + workflows: [release-please] + types: + - completed + +jobs: + sync-to-gitee: + runs-on: ubuntu-latest + steps: + - name: gitee-mirror-action + uses: Yikun/hub-mirror-action@master + with: + src: github/viarotel-org + dst: gitee/viarotel-org + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + account_type: org + white_list: vite-uniapp-template + force_update: true