From bbe922152ab15664ebec27060fb830990951b010 Mon Sep 17 00:00:00 2001 From: tehw0lf Date: Thu, 26 Mar 2026 22:33:56 +0100 Subject: [PATCH] refactor(publish-firefox-extension): remove artifact path input and related steps * Removed `artifact_path` input from the workflow. * Eliminated checks and downloads related to build artifacts. * Simplified the publishing process for the Firefox extension. --- .github/workflows/build-test-publish.yml | 1 - .../workflows/publish-firefox-extension.yml | 20 ------------------- 2 files changed, 21 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 36e0cd4..a55e065 100755 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -311,7 +311,6 @@ jobs: uses: ./.github/workflows/publish-firefox-extension.yml with: runner: ${{ inputs.runner }} - artifact_path: ${{ inputs.artifact_path }} addon_guid: ${{ inputs.addon_guid }} xpi_path: ${{ inputs.xpi_path }} secrets: diff --git a/.github/workflows/publish-firefox-extension.yml b/.github/workflows/publish-firefox-extension.yml index e8a3462..9a20a57 100644 --- a/.github/workflows/publish-firefox-extension.yml +++ b/.github/workflows/publish-firefox-extension.yml @@ -18,11 +18,6 @@ on: default: "ubuntu-latest" required: false type: string - artifact_path: - description: "path to artifact files to save from build step" - default: "" - required: false - type: string addon_guid: description: "firefox addon guid" default: "" @@ -49,26 +44,11 @@ jobs: steps: - uses: actions/checkout@v6 - - name: check build artifact existence - uses: softwareforgood/check-artifact-v4-existence@v0 - id: check_artifact_exists - with: - name: build - - - name: download build artifact - if: ${{ inputs.artifact_path != '' && steps.check_artifact_exists.outputs.exists == 'true' }} - uses: actions/download-artifact@v8 - with: - name: build - path: ${{ inputs.artifact_path }} - - name: package firefox extension - if: ${{ steps.check_artifact_exists.outputs.exists == 'true' }} run: zip -r ${{ inputs.xpi_path }} * -x .git\* -x .github\* shell: bash - name: publish firefox extension - if: ${{ steps.check_artifact_exists.outputs.exists == 'true' }} uses: wdzeng/firefox-addon@v1.2.0 with: addon-guid: ${{ inputs.addon_guid }}