mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-22 23:57:26 +08:00
chore: Add release action
This commit is contained in:
parent
a5c884aa0b
commit
8a461fdb25
34
.github/workflows/Release.yml
vendored
Normal file
34
.github/workflows/Release.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
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'
|
Loading…
Reference in New Issue
Block a user