mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
d31bc4090e
* Bump TheDoctor0/zip-release from 0.4.1 to 0.6.2 (#9) Bumps [TheDoctor0/zip-release](https://github.com/TheDoctor0/zip-release) from 0.4.1 to 0.6.2. - [Release notes](https://github.com/TheDoctor0/zip-release/releases) - [Commits](https://github.com/TheDoctor0/zip-release/compare/0.4.1...0.6.2) --- 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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 2 to 3 (#10) Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 2 to 3 (#11) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @testing-library/react from 13.3.0 to 13.4.0 (#16) Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 13.3.0 to 13.4.0. - [Release notes](https://github.com/testing-library/react-testing-library/releases) - [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md) - [Commits](https://github.com/testing-library/react-testing-library/compare/v13.3.0...v13.4.0) --- updated-dependencies: - dependency-name: "@testing-library/react" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump typescript from 4.7.4 to 4.8.2 (#12) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/node from 16.11.54 to 18.7.15 (#14) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.54 to 18.7.15. - [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-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sass from 1.54.5 to 1.54.8 (#13) Bumps [sass](https://github.com/sass/dart-sass) from 1.54.5 to 1.54.8. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](https://github.com/sass/dart-sass/compare/1.54.5...1.54.8) --- updated-dependencies: - dependency-name: sass dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> 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 @testing-library/user-event from 13.5.0 to 14.4.3 (#15) Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.5.0 to 14.4.3. - [Release notes](https://github.com/testing-library/user-event/releases) - [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md) - [Commits](https://github.com/testing-library/user-event/compare/v13.5.0...v14.4.3) --- updated-dependencies: - dependency-name: "@testing-library/user-event" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
148 lines
3.5 KiB
YAML
148 lines
3.5 KiB
YAML
name: Release pipeline
|
|
|
|
on:
|
|
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Update manifest version
|
|
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"
|
|
|
|
- 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'
|
|
uses: actions/upload-artifacts@v3.0.0
|
|
with:
|
|
name: 'Build'
|
|
path: 'build'
|
|
|
|
Firefox:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: 'Build'
|
|
|
|
- name: Build Extension for Firefox
|
|
id: web-ext-build
|
|
uses: kewisch/action-web-ext@v1
|
|
with:
|
|
cmd: build
|
|
source: Build
|
|
|
|
- name: 'Sign & publish'
|
|
id: web-ext-sign
|
|
uses: kewisch/action-web-ext@v1
|
|
with:
|
|
cmd: sign
|
|
channel: listed
|
|
source: ${{ steps.web-ext-build.outputs.target }}
|
|
apiKey: ${{ secrets.FIREFOX_API_KEY }}
|
|
apiSecret: ${{ secrets.FIREFOX_CLIENT_SECRET }}
|
|
|
|
- name: Drop artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: 'Firefox build'
|
|
path: ${{ steps.web-ext-sign.outputs.target }}
|
|
|
|
- name: Upload artifact
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: ${{ steps.web-ext-sign.outputs.target }}
|
|
tags: true
|
|
draft: false
|
|
|
|
Chrome:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: 'Build'
|
|
|
|
- name: Pack extension
|
|
uses: TheDoctor0/zip-release@0.6.2
|
|
with:
|
|
directory: Build
|
|
filename: ./PasswordGenerator.zip
|
|
|
|
- name: Publish to Chrome Webstore
|
|
uses: SebastienGllmt/chrome-addon@v3
|
|
with:
|
|
extension: jnjobgjobffgmgfnkpkjfjkkfhfikmfl
|
|
zip: ./PasswordGenerator.zip
|
|
client-id: ${{ secrets.CHROME_CLIENT_ID }}
|
|
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
|
|
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
|
|
|
|
- name: Drop artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: 'Chrome Artifacts'
|
|
path: ./PasswordGenerator.zip
|
|
|
|
- name: Upload artifact
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: ./PasswordGenerator.zip
|
|
tags: true
|
|
draft: false
|
|
|
|
Edge:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: 'Build'
|
|
|
|
- name: Pack extension
|
|
uses: TheDoctor0/zip-release@0.6.2
|
|
with:
|
|
directory: Build
|
|
filename: ./PasswordGenerator.zip
|
|
|
|
- name: Publish to Edge Addons
|
|
uses: wdzeng/edge-addon@v1
|
|
with:
|
|
product-id: 0RDCKDGH3MWT
|
|
zip-path: ./PasswordGenerator.zip
|
|
client-id: ${{ secrets.EDGE_CLIENT_ID }}
|
|
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
|
|
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
|