2024-08-31 23:27:38 +08:00
|
|
|
name: Build
|
2023-06-10 22:55:26 +08:00
|
|
|
on:
|
2024-08-31 23:27:38 +08:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
description: "Tag version to release"
|
|
|
|
required: true
|
2023-06-10 22:55:26 +08:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release_archive:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'KT-Yeh/mihomo'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Archive Release
|
|
|
|
uses: thedoctor0/zip-release@0.7.1
|
|
|
|
with:
|
|
|
|
type: zip
|
|
|
|
filename: 'mihomo_${{ github.ref_name }}.zip'
|
|
|
|
exclusions: '*.git*'
|
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
generate_release_notes: true
|
|
|
|
files: 'mihomo_${{ github.ref_name }}.zip'
|