From 3e137f6955e2c70e4ffce181c94cb8639a44b5cc Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Tue, 5 Sep 2023 18:46:20 +0300 Subject: [PATCH] CI workflow fix for Edge and Chrome publishing (#206) * Updated actions versions for Edge and Chrome publishing * Added conditions for CI jobs * Updated workflow * Possible fix for Chrome CI action --- .github/workflows/cd_pipeline.yaml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd_pipeline.yaml b/.github/workflows/cd_pipeline.yaml index 18ab652..a8fecc6 100644 --- a/.github/workflows/cd_pipeline.yaml +++ b/.github/workflows/cd_pipeline.yaml @@ -4,6 +4,19 @@ on: release: types: [ released ] workflow_dispatch: + inputs: + firefox: + description: Mozilla Firefox + type: boolean + default: true + chrome: + description: Google Chrome + type: boolean + default: true + edge: + description: Microsoft Edge + type: boolean + default: true jobs: Build: @@ -42,6 +55,7 @@ jobs: path: build Pack-Chromium: + if: ${{ github.event_name == 'release' || github.event.inputs.chrome == 'true' || github.event.inputs.edge == 'true' }} needs: Build runs-on: ubuntu-latest @@ -76,6 +90,7 @@ jobs: update_latest_release: true Pack-Firefox: + if: ${{ github.event_name == 'release' || github.event.inputs.firefox == 'true' }} needs: Build runs-on: ubuntu-latest @@ -119,6 +134,7 @@ jobs: update_latest_release: true Chrome: + if: ${{ github.event_name == 'release' || github.event.inputs.chrome == 'true' }} needs: Pack-Chromium runs-on: ubuntu-latest @@ -129,7 +145,7 @@ jobs: name: Chromium - name: Publish to Chrome Web Store - uses: wdzeng/chrome-extension@v1 + uses: wdzeng/chrome-extension@v1.1.1 with: extension-id: jnjobgjobffgmgfnkpkjfjkkfhfikmfl zip-path: PasswordGenerator-Chromium.zip @@ -138,6 +154,7 @@ jobs: refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }} Edge: + if: ${{ github.event_name == 'release' || github.event.inputs.edge == 'true' }} needs: Pack-Chromium runs-on: ubuntu-latest @@ -148,7 +165,7 @@ jobs: name: Chromium - name: Publish to Edge Addons - uses: wdzeng/edge-addon@v1 + uses: wdzeng/edge-addon@v1.1.0 with: product-id: ${{ secrets.EDGE_PRODUCT_ID }} zip-path: PasswordGenerator-Chromium.zip @@ -157,6 +174,7 @@ jobs: access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }} Firefox: + if: ${{ github.event_name == 'release' || github.event.inputs.firefox == 'true' }} needs: Pack-Firefox runs-on: ubuntu-latest