1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-05 11:38:27 +08:00

chore: 流水线运行平台改为macos-latest

This commit is contained in:
mmdapl
2023-09-28 15:19:38 +08:00
committed by GitHub
parent 3f33c32106
commit f220129759
2 changed files with 7 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ env:
jobs:
install-init:
name: "依赖安装初始化"
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout Code
@@ -54,7 +54,7 @@ jobs:
deploy-github:
name: "部署到Github-Pages"
needs: install-init
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout Code
@@ -86,7 +86,7 @@ jobs:
deploy-vercel:
name: "部署到Vercel平台"
needs: install-init
runs-on: ubuntu-latest
runs-on: macos-latest
if: github.repository == '142vip/408CSFamily'
steps:
- name: Checkout Code
@@ -114,7 +114,7 @@ jobs:
## 版本发布
release:
name: "创建Github发布"
runs-on: ubuntu-latest
runs-on: macos-latest
needs: install-init
## 主库master、next且执行release更新时执行
if: github.repository == '142vip/408CSFamily' && startsWith(github.event.head_commit.message, 'chore(release):')

View File

@@ -22,7 +22,7 @@ on:
jobs:
install-init:
name: "依赖安装初始化"
runs-on: ubuntu-latest
runs-on: macos-latest
permissions:
actions: read
pull-requests: read
@@ -54,7 +54,7 @@ jobs:
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
Base-Build:
name: "基础编译构建"
runs-on: ubuntu-latest
runs-on: macos-latest
needs: install-init
steps:
- name: Checkout Code
@@ -79,7 +79,7 @@ jobs:
Build-Docker-Image:
name: "构建Docker镜像"
runs-on: ubuntu-latest
runs-on: macos-latest
needs: install-init
## 主库且tag更新时执行
if: github.repository == '142vip/408CSFamily' && startsWith(github.ref, 'refs/tags/v')