mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
chore: add dev release
This commit is contained in:
parent
b5ee701530
commit
6172cadca8
71
.github/workflows/build.yml
vendored
71
.github/workflows/build.yml
vendored
@ -67,6 +67,18 @@ jobs:
|
|||||||
dist/*portable.7z
|
dist/*portable.7z
|
||||||
body_path: changelog.md
|
body_path: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish Dev Release
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: dev
|
||||||
|
files: |
|
||||||
|
dist/*.sha256
|
||||||
|
dist/*setup.exe
|
||||||
|
dist/*portable.7z
|
||||||
|
body: "Development build from ${{ github.sha }}"
|
||||||
|
prerelease: true
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
windows7:
|
windows7:
|
||||||
strategy:
|
strategy:
|
||||||
@ -124,6 +136,18 @@ jobs:
|
|||||||
dist/*portable.7z
|
dist/*portable.7z
|
||||||
body_path: changelog.md
|
body_path: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish Dev Release
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: dev
|
||||||
|
files: |
|
||||||
|
dist/*.sha256
|
||||||
|
dist/*setup.exe
|
||||||
|
dist/*portable.7z
|
||||||
|
body: "Development build from ${{ github.sha }}"
|
||||||
|
prerelease: true
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
strategy:
|
strategy:
|
||||||
@ -174,6 +198,18 @@ jobs:
|
|||||||
dist/*.rpm
|
dist/*.rpm
|
||||||
body_path: changelog.md
|
body_path: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish Dev Release
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: dev
|
||||||
|
files: |
|
||||||
|
dist/*.sha256
|
||||||
|
dist/*.deb
|
||||||
|
dist/*.rpm
|
||||||
|
body: "Development build from ${{ github.sha }}"
|
||||||
|
prerelease: true
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
strategy:
|
strategy:
|
||||||
@ -247,6 +283,17 @@ jobs:
|
|||||||
dist/*.pkg
|
dist/*.pkg
|
||||||
body_path: changelog.md
|
body_path: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish Dev Release
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: dev
|
||||||
|
files: |
|
||||||
|
dist/*.sha256
|
||||||
|
dist/*.pkg
|
||||||
|
body: "Development build from ${{ github.sha }}"
|
||||||
|
prerelease: true
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
macos10:
|
macos10:
|
||||||
strategy:
|
strategy:
|
||||||
@ -322,9 +369,20 @@ jobs:
|
|||||||
dist/*.pkg
|
dist/*.pkg
|
||||||
body_path: changelog.md
|
body_path: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish Dev Release
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: dev
|
||||||
|
files: |
|
||||||
|
dist/*.sha256
|
||||||
|
dist/*.pkg
|
||||||
|
body: "Development build from ${{ github.sha }}"
|
||||||
|
prerelease: true
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
updater:
|
updater:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
|
||||||
needs: [windows, macos, windows7, macos10]
|
needs: [windows, macos, windows7, macos10]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -335,17 +393,28 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Telegram Notification
|
- name: Telegram Notification
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
env:
|
env:
|
||||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
run: pnpm telegram
|
run: pnpm telegram
|
||||||
- name: Generate latest.yml
|
- name: Generate latest.yml
|
||||||
run: pnpm updater
|
run: pnpm updater
|
||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: latest.yml
|
files: latest.yml
|
||||||
body_path: changelog.md
|
body_path: changelog.md
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish Dev Release
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: dev
|
||||||
|
files: latest.yml
|
||||||
|
body: "Development build updater from ${{ github.sha }}"
|
||||||
|
prerelease: true
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
aur-release-updater:
|
aur-release-updater:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user