Merge pull request #171 from machawk1/patch-1 #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Extension Zip | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Yarn Install | |
run: yarn install --frozen-lockfile | |
- name: Yarn Lint | |
run: yarn run lint | |
- name: Yarn Build | |
run: yarn run build | |
- name: Get Package Version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@main | |
- name: Create ZIP for Extension | |
run: | | |
cd dist/ext | |
zip ../../ArchiveWeb.page-${{ steps.package-version.outputs.current-version }}-extension.zip -r ./ | |
- name: Upload Extension ZIP to GitHub | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ArchiveWeb.page-${{ steps.package-version.outputs.current-version }}-extension.zip | |
tag_name: v${{ steps.package-version.outputs.current-version }} | |
fail_on_unmatched_files: true | |
draft: true | |
- name: Upload Extension ZIP to Chrome Web Store | |
uses: mnao305/chrome-extension-upload@3.0.0 | |
with: | |
file-path: ArchiveWeb.page-${{ steps.package-version.outputs.current-version }}-extension.zip | |
extension-id: fpeoodllldobpkbkabpblcfaogecpndd | |
client-id: ${{ secrets.CHROME_WEBSTORE_CLIENT_ID }} | |
client-secret: ${{ secrets.CHROME_WEBSTORE_CLIENT_SECRET }} | |
refresh-token: ${{ secrets.CHROME_WEBSTORE_REFRESH_TOKEN }} | |
publish: false | |
glob: false |