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:
@@ -4,6 +4,19 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [ released ]
|
types: [ released ]
|
||||||
workflow_dispatch:
|
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:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
@@ -42,6 +55,7 @@ jobs:
|
|||||||
path: build
|
path: build
|
||||||
|
|
||||||
Pack-Chromium:
|
Pack-Chromium:
|
||||||
|
if: ${{ github.event_name == 'release' || github.event.inputs.chrome == 'true' || github.event.inputs.edge == 'true' }}
|
||||||
needs: Build
|
needs: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -76,6 +90,7 @@ jobs:
|
|||||||
update_latest_release: true
|
update_latest_release: true
|
||||||
|
|
||||||
Pack-Firefox:
|
Pack-Firefox:
|
||||||
|
if: ${{ github.event_name == 'release' || github.event.inputs.firefox == 'true' }}
|
||||||
needs: Build
|
needs: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -119,6 +134,7 @@ jobs:
|
|||||||
update_latest_release: true
|
update_latest_release: true
|
||||||
|
|
||||||
Chrome:
|
Chrome:
|
||||||
|
if: ${{ github.event_name == 'release' || github.event.inputs.chrome == 'true' }}
|
||||||
needs: Pack-Chromium
|
needs: Pack-Chromium
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -129,7 +145,7 @@ jobs:
|
|||||||
name: Chromium
|
name: Chromium
|
||||||
|
|
||||||
- name: Publish to Chrome Web Store
|
- name: Publish to Chrome Web Store
|
||||||
uses: wdzeng/chrome-extension@v1
|
uses: wdzeng/chrome-extension@v1.1.1
|
||||||
with:
|
with:
|
||||||
extension-id: jnjobgjobffgmgfnkpkjfjkkfhfikmfl
|
extension-id: jnjobgjobffgmgfnkpkjfjkkfhfikmfl
|
||||||
zip-path: PasswordGenerator-Chromium.zip
|
zip-path: PasswordGenerator-Chromium.zip
|
||||||
@@ -138,6 +154,7 @@ jobs:
|
|||||||
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
|
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
|
||||||
|
|
||||||
Edge:
|
Edge:
|
||||||
|
if: ${{ github.event_name == 'release' || github.event.inputs.edge == 'true' }}
|
||||||
needs: Pack-Chromium
|
needs: Pack-Chromium
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -148,7 +165,7 @@ jobs:
|
|||||||
name: Chromium
|
name: Chromium
|
||||||
|
|
||||||
- name: Publish to Edge Addons
|
- name: Publish to Edge Addons
|
||||||
uses: wdzeng/edge-addon@v1
|
uses: wdzeng/edge-addon@v1.1.0
|
||||||
with:
|
with:
|
||||||
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
|
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
|
||||||
zip-path: PasswordGenerator-Chromium.zip
|
zip-path: PasswordGenerator-Chromium.zip
|
||||||
@@ -157,6 +174,7 @@ jobs:
|
|||||||
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
|
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
|
||||||
|
|
||||||
Firefox:
|
Firefox:
|
||||||
|
if: ${{ github.event_name == 'release' || github.event.inputs.firefox == 'true' }}
|
||||||
needs: Pack-Firefox
|
needs: Pack-Firefox
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user