Skip to content

Commit

Permalink
chore: 调整 action
Browse files Browse the repository at this point in the history
  • Loading branch information
myltx committed Dec 9, 2024
1 parent 7b51bb9 commit 189b1bb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -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 }}
22 changes: 22 additions & 0 deletions .github/workflows/sync-gitee.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 189b1bb

Please sign in to comment.