Skip to content

Commit 29d22f0

Browse files
committed
👷 Add github workflow
1 parent c81b42b commit 29d22f0

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)