From 20f012323e1c4a14b58d621e477a64d36618c629 Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Tue, 31 Mar 2026 02:11:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20v5=E5=AD=98=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 87 --------------------------------- .github/workflows/repo-sync.yml | 36 -------------- 2 files changed, 123 deletions(-) delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/repo-sync.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 67ef31f8..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: Release - -on: - push: - tags: - - 'v*' - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - uses: actions/setup-node@v4 - with: - node-version: latest - - - run: npx changelogithub # or changelogithub@0.12 if ensure the stable result - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - upload-archive: - needs: release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - name: Get Release - id: last_release - uses: joutvhu/get-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - latest: true - - - name: Create Archive - uses: thedoctor0/zip-release@main - with: - type: zip - filename: fantastic-admin.${{ steps.last_release.outputs.tag_name }}.zip - exclusions: '/.git/* /.github/*' - - - name: Upload Archive To Release - uses: xresloader/upload-to-github-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - release_id: ${{ steps.last_release.outputs.id }} - draft: false - file: fantastic-admin.${{ steps.last_release.outputs.tag_name }}.zip - - upload-archive-example: - needs: release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - ref: example - - - name: Get Release - id: last_release - uses: joutvhu/get-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - latest: true - - - name: Create Archive - uses: thedoctor0/zip-release@main - with: - type: zip - filename: fantastic-admin.example.${{ steps.last_release.outputs.tag_name }}.zip - exclusions: '/.git/* /.github/* /public/.github/* /public/.nojekyll' - - - name: Upload Archive To Release - uses: xresloader/upload-to-github-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - release_id: ${{ steps.last_release.outputs.id }} - draft: false - file: fantastic-admin.example.${{ steps.last_release.outputs.tag_name }}.zip diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml deleted file mode 100644 index 2b2bb532..00000000 --- a/.github/workflows/repo-sync.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: repo-sync - -on: - # 每天 00:05 自动同步 - schedule: - - cron: '5 0 * * *' - # 手动触发部署 - workflow_dispatch: - -jobs: - sync-to-gitee: - runs-on: ubuntu-latest - steps: - - name: Sync to Gitee - uses: wearerequired/git-mirror-action@master - env: - # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY - SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} - with: - # 注意替换为你的 GitHub 源仓库地址 - source-repo: git@github.com:fantastic-admin/basic.git - # 注意替换为你的 Gitee 目标仓库地址 - destination-repo: git@gitee.com:fantastic-admin/basic.git - sync-to-atomgit: - runs-on: ubuntu-latest - steps: - - name: Sync to AtomGit - uses: wearerequired/git-mirror-action@master - env: - # 注意在 Settings->Secrets 配置 ATOMGIT_RSA_PRIVATE_KEY - SSH_PRIVATE_KEY: ${{ secrets.ATOMGIT_RSA_PRIVATE_KEY }} - with: - # 注意替换为你的 GitHub 源仓库地址 - source-repo: git@github.com:fantastic-admin/basic.git - # 注意替换为你的 AtomGit 目标仓库地址 - destination-repo: git@gitcode.com:fantastic-admin/basic.git