add release action

This commit is contained in:
Calvin Lee 2024-10-17 19:40:08 +00:00
parent 52ab79c7ca
commit 5d965e8ca2

26
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate release
run: |
git archive --format=zip --prefix=miku-cursor-linux/ HEAD:miku-cursor-linux/ -o miku-cursor-linux.zip
git archive --format=zip --prefix=miku-cursor-windows/ HEAD:miku-cursor-windows/ -o miku-cursor-windows.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
miku-cursor-linux.zip
miku-cursor-windows.zip