From 856536b8f2fded53017fee75adb1ff701b000652 Mon Sep 17 00:00:00 2001 From: ghostflyby Date: Mon, 26 Feb 2024 19:11:15 +0800 Subject: [PATCH] Revert "simplify github actions" This reverts commit 0b281f4693d5d60f4092fcca53800623037892f8. --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89f9436..516526b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,18 +37,21 @@ jobs: - recursive: true - name: "pnpm build" + if: ${{ steps.read-versions.outputs.version != steps.read-versions.outputs.previous-version }} run: | echo "Building the project..." pnpm run build echo "Done!" - name: "Zip release files" # Only if the version has been updated + if: ${{ steps.read-versions.outputs.version != steps.read-versions.outputs.previous-version }} run: | echo "Creating a release zip file..." zip -r "${{github.event.repository.name}}-release.zip" dist/ LICENSE README.md manifest.json echo "Done!" - name: "Create Release" + if: ${{ steps.read-versions.outputs.version != steps.read-versions.outputs.previous-version }} run: | gh release create "${{ steps.read-versions.outputs.version }}" *.zip --generate-notes env: