mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
5d4088dd1a
* Updated workflows for #110 * Bump @fluentui/react-components from 9.7.2 to 9.13.0 (#112) Bumps [@fluentui/react-components](https://github.com/microsoft/fluentui) from 9.7.2 to 9.13.0. - [Release notes](https://github.com/microsoft/fluentui/releases) - [Changelog](https://github.com/microsoft/fluentui/blob/master/azure-pipelines.release-fluentui.yml) - [Commits](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.7.2...@fluentui/react-components_v9.13.0) --- updated-dependencies: - dependency-name: "@fluentui/react-components" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump @types/node from 18.11.9 to 18.11.19 (#111) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.9 to 18.11.19. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump TheDoctor0/zip-release from 0.6.2 to 0.7.1 (#107) Bumps [TheDoctor0/zip-release](https://github.com/TheDoctor0/zip-release) from 0.6.2 to 0.7.1. - [Release notes](https://github.com/TheDoctor0/zip-release/releases) - [Commits](https://github.com/TheDoctor0/zip-release/compare/0.6.2...0.7.1) --- updated-dependencies: - dependency-name: TheDoctor0/zip-release dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Update README.md (#101) Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump json5 from 1.0.1 to 1.0.2 (#100) Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump actions/upload-artifact from 3.1.1 to 3.1.2 (#98) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3.1.1...v3.1.2) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump @types/react-dom from 18.0.9 to 18.0.10 (#92) Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.0.9 to 18.0.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) --- updated-dependencies: - dependency-name: "@types/react-dom" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump @fluentui/react-icons from 2.0.186 to 2.0.193 (#109) Bumps [@fluentui/react-icons](https://github.com/microsoft/fluentui-system-icons) from 2.0.186 to 2.0.193. - [Release notes](https://github.com/microsoft/fluentui-system-icons/releases) - [Commits](https://github.com/microsoft/fluentui-system-icons/commits) --- updated-dependencies: - dependency-name: "@fluentui/react-icons" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Updated version in package.json --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Maison da Silva <maisonmdsgreen@hotmail.com>
176 lines
4.5 KiB
YAML
176 lines
4.5 KiB
YAML
name: Release pipeline
|
|
|
|
on:
|
|
release:
|
|
types: [ released ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Configure manifest
|
|
uses: Amadevus/pwsh-script@v2
|
|
with:
|
|
script: |
|
|
[PSCustomObject] $package = Get-Content "package.json" | ConvertFrom-Json;
|
|
|
|
[PSCustomObject] $manifest = Get-Content "public/manifest.json" | ConvertFrom-Json;
|
|
$manifest.version = $package.version;
|
|
$manifest | ConvertTo-Json -Depth 10 | Out-File "public/manifest.json"
|
|
|
|
$manifest = Get-Content "public/manifest.v2.json" | ConvertFrom-Json;
|
|
$manifest.version = $package.version;
|
|
$manifest | ConvertTo-Json -Depth 10 | Out-File "public/manifest.v2.json"
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16.x'
|
|
cache: yarn
|
|
|
|
- run: yarn install
|
|
- run: yarn build
|
|
|
|
- name: Drop artifacts (build)
|
|
uses: actions/upload-artifact@v3.1.2
|
|
with:
|
|
name: build
|
|
path: build
|
|
|
|
Pack-Chromium:
|
|
needs: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: build
|
|
|
|
- name: Configure manifest
|
|
uses: Amadevus/pwsh-script@v2
|
|
with:
|
|
script: Remove-Item "manifest.v2.json"
|
|
|
|
- name: Pack extension
|
|
uses: TheDoctor0/zip-release@0.7.1
|
|
with:
|
|
filename: PasswordGenerator-Chromium.zip
|
|
|
|
- name: Drop artifacts (Chromium)
|
|
uses: actions/upload-artifact@v3.1.2
|
|
with:
|
|
name: Chromium
|
|
path: PasswordGenerator-Chromium.zip
|
|
|
|
- name: Attach build to release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: PasswordGenerator-Chromium.zip
|
|
draft: false
|
|
update_latest_release: true
|
|
|
|
Pack-Firefox:
|
|
needs: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: build
|
|
|
|
- name: Configure manifest
|
|
uses: Amadevus/pwsh-script@v2
|
|
with:
|
|
script: |
|
|
Remove-Item "manifest.json"
|
|
Rename-Item "manifest.v2.json" "manifest.json"
|
|
|
|
- name: "web-ext lint"
|
|
uses: kewisch/action-web-ext@e0ea88d527a8a90bc10d600f80ac667d219e6bf1
|
|
with:
|
|
cmd: lint
|
|
source: .
|
|
channel: listed
|
|
|
|
- name: Pack extension
|
|
uses: TheDoctor0/zip-release@0.7.1
|
|
with:
|
|
filename: PasswordGenerator-Firefox.zip
|
|
|
|
- name: Drop artifacts (Firefox)
|
|
uses: actions/upload-artifact@v3.1.2
|
|
with:
|
|
name: Firefox
|
|
path: PasswordGenerator-Firefox.zip
|
|
|
|
- name: Attach build to release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: PasswordGenerator-Firefox.zip
|
|
draft: false
|
|
update_latest_release: true
|
|
|
|
Chrome:
|
|
needs: Pack-Chromium
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download artifacts (Chromium)
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: Chromium
|
|
|
|
- name: Publish to Chrome Web Store
|
|
uses: wdzeng/chrome-extension@v1
|
|
with:
|
|
extension-id: jnjobgjobffgmgfnkpkjfjkkfhfikmfl
|
|
zip-path: PasswordGenerator-Chromium.zip
|
|
client-id: ${{ secrets.CHROME_CLIENT_ID }}
|
|
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
|
|
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
|
|
|
|
Edge:
|
|
needs: Pack-Chromium
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download artifacts (Chromium)
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: Chromium
|
|
|
|
- name: Publish to Edge Addons
|
|
uses: wdzeng/edge-addon@v1
|
|
with:
|
|
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
|
|
zip-path: PasswordGenerator-Chromium.zip
|
|
client-id: ${{ secrets.EDGE_CLIENT_ID }}
|
|
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
|
|
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
|
|
|
|
Firefox:
|
|
needs: Pack-Firefox
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download artifacts (Firefox)
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: Firefox
|
|
|
|
- name: Publish to Firefox
|
|
uses: wdzeng/firefox-addon@v1
|
|
with:
|
|
addon-guid: ${{ secrets.FIREFOX_EXT_UUID }}
|
|
xpi-path: PasswordGenerator-Firefox.zip
|
|
jwt-issuer: ${{ secrets.FIREFOX_API_KEY }}
|
|
jwt-secret: ${{ secrets.FIREFOX_CLIENT_SECRET }}
|