mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
custom release
This commit is contained in:
67
.github/workflows/build.yml
vendored
67
.github/workflows/build.yml
vendored
@@ -3,6 +3,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- v*
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
@@ -33,16 +36,30 @@ jobs:
|
||||
pnpm install
|
||||
pnpm prepare --${{ matrix.arch }}
|
||||
- name: Build
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: pnpm build:win --${{ matrix.arch }}
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Windows ${{ matrix.arch }}
|
||||
path: dist/*.exe
|
||||
if-no-files-found: error
|
||||
- name: Publish Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
dist/*.exe
|
||||
dist/*.blockmap
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Merge Yaml
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
run: pnpm updater latest.yml
|
||||
- name: Publish Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: dist/latest.yml
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
linux:
|
||||
strategy:
|
||||
@@ -70,10 +87,7 @@ jobs:
|
||||
pnpm install
|
||||
pnpm prepare --${{ matrix.arch }}
|
||||
- name: Build
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: pnpm build:linux --${{ matrix.arch }}
|
||||
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -82,6 +96,29 @@ jobs:
|
||||
dist/*.deb
|
||||
dist/*.rpm
|
||||
if-no-files-found: error
|
||||
- name: Publish Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
dist/*.deb
|
||||
dist/*.rpm
|
||||
dist/*.blockmap
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Merge Yaml
|
||||
if: startsWith(github.ref, 'refs/tags/v') && matrix.arch == 'x64'
|
||||
run: pnpm updater latest-linux.yml
|
||||
- name: Merge Yaml
|
||||
if: startsWith(github.ref, 'refs/tags/v') && matrix.arch == 'arm64'
|
||||
run: pnpm updater latest-linux-arm64.yml
|
||||
- name: Publish Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
dist/latest-linux.yml
|
||||
dist/latest-linux-arm64.yml
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
macos:
|
||||
strategy:
|
||||
@@ -119,3 +156,21 @@ jobs:
|
||||
name: MacOS ${{ matrix.arch }}
|
||||
path: dist/*.dmg
|
||||
if-no-files-found: error
|
||||
- name: Publish Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
dist/*.dmg
|
||||
dist/*.zip
|
||||
dist/*.blockmap
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Merge Yaml
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
run: pnpm updater latest-mac.yml
|
||||
- name: Publish Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: dist/latest-mac.yml
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user