name: 自动版本发布 on: push: branches: - main jobs: AutoRelease: # 如果有Release标签则运行jobs if: "contains(github.event.head_commit.message, 'Release')" # 工作在ubuntu-latest系统中 runs-on: ubuntu-latest # 以下是steps steps: # 检出仓库 - name: Checkout uses: https://gitee.com/actions-mirror/checkout@v4 with: fetch-depth: 0 # 启用子模块支持 submodules: true # - name: 替换软件源为国内软件源 # run: | # cat /etc/os-release # sudo rm -f /etc/apt/sources.list # sudo rm -f /etc/apt/sources.list.d/* # sudo tee /etc/apt/sources.list <