Skip to content

Commit 51549be

Browse files
ExcellifyTroyKomodolennartkloockphilipkbhpimothyxd
authoredJun 13, 2024··
3.1.0 Emote management & Bug fixes (#1042)
Co-authored-by: Troy Benson <troybensonsa@gmail.com> Co-authored-by: Lennart <lennart.kloock@protonmail.com> Co-authored-by: Philip <82680013+philipkbh@users.noreply.github.com> Co-authored-by: pimothyxd <29018740+pimothyxd@users.noreply.github.com> Co-authored-by: Adam Irlik <adusop@gmail.com> Co-authored-by: loczek <30776250+loczek@users.noreply.github.com> Co-authored-by: John Friend <goralight@gmail.com> Co-authored-by: John <me@goralight.com> Co-authored-by: Junsu Park <junsupark94@gmail.com> Co-authored-by: ByteZ1337 <0xbytez@gmail.com> Co-authored-by: Nikolai Ammosov <kolas.batman@gmail.com>
1 parent a98e365 commit 51549be

File tree

101 files changed

+3601
-643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+3601
-643
lines changed
 

‎.github/workflows/ci.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Jobs
2+
3+
## Build job (`ci`)
4+
5+
- Builds the chrome extension with `yarn build:prod` and firefox extension with `MOZILLA_ID=moz-addon-prod@7tv.app MV2=true yarn build:prod`
6+
- Both builds get zipped
7+
- For chrome: Create CRX from zip with action `cardinalby/webext-buildtools-chrome-crx-action@v2` and private key `secrets.WEB_EXTENSION_CRX`
8+
- For Firefox: Create XPI from zip with action `kewisch/action-web-ext@v1`
9+
- CRX and XPI files uploaded as artifact `installable`
10+
- Chrome zip and Firefox zip uploaded as artifact `build`
11+
- Both manifest jsons uploaded as artifact `manifest`
12+
13+
## Release job (`release`)
14+
15+
- Creates Github releases and tags
16+
17+
## Side loading deploy job (`deploy`)
18+
19+
- Builds with `yarn build-hosted:prod`
20+
- Uploads to Cloudflare R2 with action `shallwefootball/s3-upload-action@master`
21+
- Endpoint: `secrets.R2_API_ENDPOINT`
22+
- Access Key: `secrets.R2_API_AK`
23+
- Secret Key: `secrets.R2_API_SECRET`
24+
- Bucket: `7tv-extension`
25+
26+
## Push job (`push`)
27+
28+
- Upload zip file (not crx) to chrome web store (cws) with npm package `chrome-webstore-upload-cli`
29+
- Extension id: `ammjkodgmmoknidbanneddgankgfejfh`
30+
- Client id, client secret, refresh token in `secrets.CWS`
31+
- Sign XPI file with action `kewisch/action-web-ext@v1`
32+
- API key: `secrets.AMO_API_KEY`
33+
- API secret: `secrets.AMO_API_SECRET`
34+
- upload signed XPI as artifact `installable`
35+
- Update Github release

‎.github/workflows/ci.yaml

+11-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ on:
2121
- stable
2222
default: nightly
2323

24+
stage-host:
25+
type: boolean
26+
default: false
27+
description: "Use stage-host"
28+
2429
store-upload:
2530
type: boolean
2631
default: false
@@ -78,8 +83,9 @@ jobs:
7883

7984
- name: Build App
8085
env:
81-
BRANCH: ${{ (inputs.branch == 'nightly' || env.IS_MASTER_COMMIT == 'true') && 'nightly' || inputs.branch == 'stable' && '' }}
82-
EXTENSION_ID_MOZ: ${{ (inputs.branch == 'stable') && env.EXTENSION_ID_AMO || ((inputs.branch == 'nightly' || env.IS_MASTER_COMMIT == 'true') && env.NIGHTLY_EXTENSION_ID_AMO) }}
86+
BRANCH: ${{ (inputs.branch != 'stable' && 'nightly') || '' }}
87+
EXTENSION_ID_MOZ: ${{ (inputs.branch == 'stable' && env.EXTENSION_ID_AMO) || env.NIGHTLY_EXTENSION_ID_AMO }}
88+
8389
run: |
8490
OUT_DIR=mv3 yarn build:prod
8591
OUT_DIR=mv2 MOZILLA_ID=${{ env.EXTENSION_ID_MOZ }} MV2=true yarn build:prod
@@ -255,7 +261,8 @@ jobs:
255261
256262
- name: Build (Hosted)
257263
env:
258-
BRANCH: ${{ (inputs.branch == 'nightly' || env.IS_MASTER_COMMIT == 'true') && 'nightly' || inputs.branch == 'stable' && '' }}
264+
BRANCH: ${{ (inputs.branch != 'stable' && 'nightly') || '' }}
265+
MANIFEST_NAME: ${{ (inputs.stage-host && 'Stage') || ''}}
259266
run: |
260267
yarn build-hosted:prod
261268
@@ -310,7 +317,7 @@ jobs:
310317
continue-on-error: true
311318
env:
312319
CREDENTIALS: ${{ secrets.CWS }}
313-
EXTENSION_ID: ${{ (inputs.branch == 'stable') && env.EXTENSION_ID_CWS || ((inputs.branch == 'nightly' || env.IS_MASTER_COMMIT == 'true') && env.NIGHTLY_EXTENSION_ID_CWS) }}
320+
EXTENSION_ID: ${{ (inputs.branch == 'stable' && env.EXTENSION_ID_CWS) || env.NIGHTLY_EXTENSION_ID_CWS }}
314321
run: |
315322
echo "${{ env.CREDENTIALS }}" >> c
316323

0 commit comments

Comments
 (0)
Please sign in to comment.