From a4939fe145239e67fa3aff3883088ff5f8a84dbc Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Mon, 25 Mar 2024 21:11:59 +0300 Subject: [PATCH] add release file --- .github/workflows/make_release.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/make_release.yml diff --git a/.github/workflows/make_release.yml b/.github/workflows/make_release.yml new file mode 100644 index 0000000..d9bc56b --- /dev/null +++ b/.github/workflows/make_release.yml @@ -0,0 +1,38 @@ +name: "tagged-release" + +on: + push: + tags: + - "v*" + +jobs: + tagged-release: + name: "Tagged Release" + runs-on: "ubuntu-latest" + permissions: + contents: write + + steps: + - name: "Checkout" + uses: actions/checkout@v4 + with: + fetch-depth: 1 + submodules: "recursive" + + - name: Install zipmerge + run: | + sudo apt-get install -y zipmerge + + - name: "Create zip" + run: | + ./package.sh --target github + + - name: "Create release" + uses: softprops/action-gh-release@v2 + with: + prerelease: false + make_latest: true + generate_release_notes: true + name: "Japanese ${{github.ref_name}}" + files: | + *.ankiaddon