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

Major 4.0 (#380)

- Migrated to WXT
- Migrated to NPM
- Added Insert & copy action
- Added ESLint
This commit is contained in:
Eugene Fox
2024-09-25 16:19:12 +03:00
committed by GitHub
parent f2683e37b2
commit 3ecb6c4a31
71 changed files with 14338 additions and 7531 deletions
+14 -24
View File
@@ -43,34 +43,24 @@ jobs:
steps:
- uses: actions/checkout@main
- run: yarn install
- run: yarn lint
- run: TARGET=${{ matrix.target }} yarn build
- run: npm install
- run: npm run zip -- -b ${{ matrix.target }}
- run: npm audit
- name: Drop build artifacts (${{ matrix.target }})
uses: actions/upload-artifact@main
with:
name: ${{ matrix.target }}
path: dist
path: ./.output/password-generator-*-${{ matrix.target }}.zip
include-hidden-files: true
- name: web-ext lint
if: ${{ matrix.target == 'firefox' }}
uses: freaktechnik/web-ext-lint@main
with:
extension-root: dist
extension-root: ./.output/firefox-mv3
self-hosted: false
- uses: cardinalby/webext-buildtools-pack-extension-dir-action@1.0.9
with:
extensionDir: dist
zipFilePath: PasswordGenerator-${{ matrix.target }}.zip
- name: Drop packed artifacts (${{ matrix.target }})
uses: actions/upload-artifact@main
with:
name: packed-${{ matrix.target }}
path: PasswordGenerator-${{ matrix.target }}.zip
publish-github:
needs: build
if: ${{ github.event_name == 'release' || github.event.inputs.gh-release == 'true' }}
@@ -83,14 +73,14 @@ jobs:
steps:
- uses: actions/download-artifact@main
with:
name: packed-${{ matrix.target }}
name: ${{ matrix.target }}
- name: Attach build to release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: PasswordGenerator-${{ matrix.target }}.zip
file: password-generator-*-${{ matrix.target }}.zip
draft: false
overwrite: true
update_latest_release: true
@@ -103,12 +93,12 @@ jobs:
steps:
- uses: actions/download-artifact@main
with:
name: packed-chrome
name: chrome
- uses: wdzeng/chrome-extension@v1.2.4
with:
extension-id: jnjobgjobffgmgfnkpkjfjkkfhfikmfl
zip-path: PasswordGenerator-chrome.zip
zip-path: password-generator-*-chrome.zip
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
@@ -121,12 +111,12 @@ jobs:
steps:
- uses: actions/download-artifact@main
with:
name: packed-chrome
name: chrome
- uses: wdzeng/edge-addon@v1.2.4
with:
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
zip-path: PasswordGenerator-chrome.zip
zip-path: password-generator-*-chrome.zip
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
@@ -139,11 +129,11 @@ jobs:
steps:
- uses: actions/download-artifact@main
with:
name: packed-firefox
name: firefox
- uses: wdzeng/firefox-addon@v1.0.5
with:
addon-guid: ${{ secrets.FIREFOX_EXT_UUID }}
xpi-path: PasswordGenerator-firefox.zip
xpi-path: password-generator-*-firefox.zip
jwt-issuer: ${{ secrets.FIREFOX_API_KEY }}
jwt-secret: ${{ secrets.FIREFOX_CLIENT_SECRET }}
+6 -5
View File
@@ -37,19 +37,20 @@ jobs:
steps:
- uses: actions/checkout@main
- run: yarn install
- run: yarn lint
- run: TARGET=${{ matrix.target }} yarn build
- run: npm install
- run: npm run zip -- -b ${{ matrix.target }}
- run: npm audit
- name: Drop artifacts (${{ matrix.target }})
uses: actions/upload-artifact@main
with:
name: ${{ matrix.target }}
path: dist
path: ./.output/password-generator-*-${{ matrix.target }}.zip
include-hidden-files: true
- name: web-ext lint
if: ${{ matrix.target == 'firefox' }}
uses: freaktechnik/web-ext-lint@main
with:
extension-root: dist
extension-root: ./.output/firefox-mv3
self-hosted: false