From d23586cd8b3bf24e8a4952bd6c6e0b266f8823dc Mon Sep 17 00:00:00 2001 From: Hunain Bin Sajid Date: Mon, 23 Sep 2024 17:55:17 +0500 Subject: [PATCH] fix: remove dist folder --- .github/workflows/build.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e45c057..9f1589e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,8 +41,23 @@ jobs: cd dist zip -r firefox.zip firefox/ + - name: Get manifest version + id: manifest_version + run: | + version=$(cat manifest.json | jq -r .version) + echo "::set-output name=version::$version" + + - name: Get short commit hash + id: commit_hash + run: | + short_hash=$(git rev-parse --short HEAD) + echo "::set-output name=short_hash::$short_hash" + - name: Upload build asset uses: actions/upload-artifact@v4 with: - name: extension-builds-${{ github.event.number || github.event.head_commit.id }} + name: v${{ steps.manifest_version.outputs.version }}-${{ steps.commit_hash.outputs.short_hash }} path: dist/*.zip + + - name: Remove dist folder + run: rm -rf dist