-
Notifications
You must be signed in to change notification settings - Fork 28
57 lines (53 loc) · 1.86 KB
/
submit.yml
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: "Submit to Web Store"
on:
workflow_dispatch:
push:
tags:
- v*.*.*
permissions:
contents: write
discussions: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 7.26.3
run_install: true
- name: Use Node.js 18.x
uses: actions/[email protected]
with:
node-version: 18.x
cache: "pnpm"
- name: Build and Package the extension into a zip artifact
run: |
pnpm build --target=chrome-mv3 --zip
pnpm build --target=firefox-mv2 --zip
pnpm build --target=edge-mv3 --zip
- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
body: |
## Changelog
Please see the [changelog](https://github.com/Vaayne/NotionAI-Plus/blob/main/CHANGELOG.md)
files: |
build/chrome-mv3-prod.zip
build/firefox-mv2-prod.zip
build/edge-mv3-prod.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Browser Platform Publish
# uses: PlasmoHQ/bpp@v3
# with:
# keys: ${{ secrets.SUBMIT_KEYS }}
# artifact: build/chrome-mv3-prod.zip