1
0
mirror of https://github.com/XFox111/PasswordGeneratorExtension.git synced 2026-04-22 08:08:01 +03:00

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
This commit is contained in:
Eugene Fox
2023-09-05 18:46:20 +03:00
committed by GitHub
parent 47888e4774
commit 3e137f6955
+20 -2
View File
@@ -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