File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " on " :
3+ push :
4+ paths-ignore :
5+ - " **.md"
6+ pull_request :
7+ paths-ignore :
8+ - " **.md"
9+ workflow_dispatch :
10+
11+ # https://github.com/softprops/action-gh-release/issues/236
12+ permissions :
13+ contents : write
14+
15+ jobs :
16+ deploy :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-node@v4
21+ with :
22+ node-version : latest
23+ registry-url : https://registry.npmjs.org
24+ - name : Install dependencies
25+ run : |
26+ yarn
27+ - name : Build
28+ run : |
29+ npm run build
30+ env :
31+ NODE_ENV : production
32+ - uses : actions/upload-artifact@v4
33+ if : " ! startsWith(github.ref, 'refs/tags/')"
34+ with :
35+ name : artifact
36+ path : |
37+ web-ext-artifacts/*.zip
38+ - uses : softprops/action-gh-release@v2
39+ if : startsWith(github.ref, 'refs/tags/')
40+ with :
41+ files : |
42+ web-ext-artifacts/*.zip
You can’t perform that action at this time.
0 commit comments