From 4810b8e9c1a7300e3529220374ddac9cb160a809 Mon Sep 17 00:00:00 2001 From: Felix Soederhuyzen Date: Fri, 24 May 2024 12:45:25 +0200 Subject: [PATCH] chore(ci): fix wrong release pattern --- .github/workflows/release.yml | 14 +++++++++----- package.json | 6 ++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f55c70..95ba06a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,15 @@ jobs: node-version: "lts/*" - name: Install dependencies run: pnpm install + - name: Create release.zip + uses: montudor/action-zip@v1 + with: + args: zip -qq -r release.zip modules LICENSE README.md + - name: Generate checksum + uses: jmgilman/actions-generate-checksum@v1 + with: + patterns: | + release.zip - name: Release env: WHMCSMP_LOGIN: ${{ vars.WHMCSMP_LOGIN }} @@ -29,8 +38,3 @@ jobs: WHMCSMP_PRODUCTID: ${{ vars.WHMCSMP_PRODUCTID }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: pnpm semantic-release - - name: Generate checksum - uses: jmgilman/actions-generate-checksum@v1 - with: - patterns: | - release.zip diff --git a/package.json b/package.json index f3275a6..9efca18 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,10 @@ { "assets": [ { - "path": "modules", - "name": "release.zip" + "path": "release.zip" + }, + { + "path": "checksum.txt" } ] }