mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
update depends and remove artifact
This commit is contained in:
183
.github/workflows/build.yml
vendored
183
.github/workflows/build.yml
vendored
@@ -294,171 +294,6 @@ jobs:
|
||||
body_path: changelog.md
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
artifact-windows:
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
needs: windows
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: artifact
|
||||
cancel-in-progress: false
|
||||
services:
|
||||
telegram-bot-api:
|
||||
image: aiogram/telegram-bot-api:latest
|
||||
env:
|
||||
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
|
||||
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
|
||||
ports:
|
||||
- 8081:8081
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: 'Windows*'
|
||||
merge-multiple: true
|
||||
- name: Upload Artifacts
|
||||
env:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
ARTIFACT_TARGET: windows
|
||||
run: pnpm artifact
|
||||
|
||||
artifact-windows7:
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
needs: windows7
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: artifact
|
||||
cancel-in-progress: false
|
||||
services:
|
||||
telegram-bot-api:
|
||||
image: aiogram/telegram-bot-api:latest
|
||||
env:
|
||||
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
|
||||
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
|
||||
ports:
|
||||
- 8081:8081
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: 'Win7*'
|
||||
merge-multiple: true
|
||||
- name: Upload Artifacts
|
||||
env:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
ARTIFACT_TARGET: windows7
|
||||
run: pnpm artifact
|
||||
|
||||
artifact-macos:
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
needs: macos
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: artifact
|
||||
cancel-in-progress: false
|
||||
services:
|
||||
telegram-bot-api:
|
||||
image: aiogram/telegram-bot-api:latest
|
||||
env:
|
||||
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
|
||||
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
|
||||
ports:
|
||||
- 8081:8081
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: 'MacOS*'
|
||||
merge-multiple: true
|
||||
- name: Upload Artifacts
|
||||
env:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
ARTIFACT_TARGET: macos
|
||||
run: pnpm artifact
|
||||
|
||||
artifact-macos10:
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
needs: macos10
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: artifact
|
||||
cancel-in-progress: false
|
||||
services:
|
||||
telegram-bot-api:
|
||||
image: aiogram/telegram-bot-api:latest
|
||||
env:
|
||||
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
|
||||
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
|
||||
ports:
|
||||
- 8081:8081
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: 'Catalina*'
|
||||
merge-multiple: true
|
||||
- name: Upload Artifacts
|
||||
env:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
ARTIFACT_TARGET: macos10
|
||||
run: pnpm artifact
|
||||
|
||||
artifact-linux:
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
needs: linux
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: artifact
|
||||
cancel-in-progress: false
|
||||
services:
|
||||
telegram-bot-api:
|
||||
image: aiogram/telegram-bot-api:latest
|
||||
env:
|
||||
TELEGRAM_API_ID: ${{ secrets.TELEGRAM_BOT_API_ID }}
|
||||
TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_BOT_API_HASH }}
|
||||
ports:
|
||||
- 8081:8081
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: 'Linux*'
|
||||
merge-multiple: true
|
||||
- name: Upload Artifacts
|
||||
env:
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
ARTIFACT_TARGET: linux
|
||||
run: pnpm artifact
|
||||
|
||||
updater:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [windows, macos, windows7, macos10]
|
||||
@@ -566,21 +401,3 @@ jobs:
|
||||
release-tag: v${{env.VERSION}}
|
||||
installers-regex: 'mihomo-party-windows-.*setup\.exe$'
|
||||
token: ${{ secrets.POMPURIN404_TOKEN }}
|
||||
|
||||
homebrew:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
name: Update Homebrew cask
|
||||
needs: [macos, macos10]
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Set up Git
|
||||
run: |
|
||||
git config --global user.email mihomo-party-bot[bot]@users.noreply.github.com
|
||||
git config --global user.name mihomo-party-bot[bot]
|
||||
- name: Update Homebrew cask
|
||||
env:
|
||||
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.POMPURIN404_TOKEN }}
|
||||
run: |
|
||||
brew tap mihomo-party-org/mihomo-party
|
||||
brew update
|
||||
brew bump-cask-pr mihomo-party --version $(echo ${{ github.ref }} | tr -d 'refs/tags/v') --no-browse
|
||||
|
||||
Reference in New Issue
Block a user