mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-06 14:33:11 +08:00
chore: v5存档
This commit is contained in:
@@ -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
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user