Skip to content

Commit 0f2e090

Browse files
authored
Create publich-edge.yml
1 parent ef2982f commit 0f2e090

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publich-edge.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to Edge Addon Store
2+
on:
3+
push:
4+
branches:
5+
- "release"
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- name: Add release branch
14+
run: |
15+
git fetch -a
16+
git branch release origin/release
17+
- name: Setup NodeJS
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "v20.11.0"
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Build
24+
run: npm run build
25+
- name: Upload
26+
uses: wdzeng/edge-addon@v2
27+
with:
28+
zip-path: market_packages/target.zip
29+
product-id: 2a99ae83-5ec8-4ad2-aa63-9a276fc708ce
30+
client-id: ${{ secrets.EDGE_CLIENT_ID }}
31+
api-key: ${{ secrets.EDGE_API_KEY}}
32+
upload-only: false

0 commit comments

Comments
 (0)