-
-
Notifications
You must be signed in to change notification settings - Fork 62
57 lines (46 loc) · 1.66 KB
/
buildext.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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