-
Notifications
You must be signed in to change notification settings - Fork 525
95 lines (84 loc) · 2.32 KB
/
build.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: build-replace-google-cdn
on:
push:
pull_request:
workflow_dispatch:
jobs:
linux:
if: 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare Source Code
run: |
lscpu
echo $PATH
env
docker info
id -u
id -g
who
cat /etc/os-release
hostnamectl
uname -s
uname -m
uname -r
node -v
- name: Build
run: |
bash release-archive.sh
ls -lah dist
- name: production artifacts v2
uses: actions/upload-artifact@v3
with:
name: replace-google-cdn-v2
retention-days: 7
path: |
dist/ReplaceGoogleCDN-v2.zip
- name: production artifacts v3
uses: actions/upload-artifact@v3
with:
name: replace-google-cdn-v3
retention-days: 7
path: |
dist/ReplaceGoogleCDN-v3.zip
- name: Build v3
run: |
bash release-archive-v3.sh
ls -lah dist
- name: production artifacts v3 chromium
uses: actions/upload-artifact@v3
with:
name: replace-google-cdn-v3-chromium
retention-days: 7
path: |
dist/ReplaceGoogleCDN-v3-chromium.zip
- name: production artifacts v3 firefox
uses: actions/upload-artifact@v3
with:
name: replace-google-cdn-v3-firefox
retention-days: 7
path: |
dist/ReplaceGoogleCDN-v3-firefox.zip
- name: Browser Plugin Publish v2
if: 0
uses: PlasmoHQ/bpp@v2
with:
artifact: "dist/ReplaceGoogleCDN-v2.zip"
keys: ${{ secrets.SUBMIT_KEYS }}
- name: Browser Plugin Publish v3
if: 0
uses: PlasmoHQ/bpp@v3
with:
artifact: "dist/ReplaceGoogleCDN-v3.zip"
keys: ${{ secrets.SUBMIT_KEYS }}
# 使用参考 https://github.com/PlasmoHQ/bpp.git
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/ReplaceGoogleCDN-v2.zip
dist/ReplaceGoogleCDN-v3.zip
dist/ReplaceGoogleCDN-v3-chromium.zip
dist/ReplaceGoogleCDN-v3-firefox.zip