From 5d965e8ca2abfab5aa43ec5f8c52f35c7ae63682 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Thu, 17 Oct 2024 19:40:08 +0000 Subject: [PATCH] add release action --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d699b63 --- /dev/null +++ b/.github/workflows/release.yml @@ -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