-
Notifications
You must be signed in to change notification settings - Fork 245
44 lines (36 loc) · 1.49 KB
/
beta.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
name: Beta Release
on:
workflow_dispatch:
jobs:
chrome_beta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: |
npm run install-ci
- name: Fetch config and update version
run: |
npm run bundle-config
node scripts/bumpVersion.js $(date "+%Y.%m.%d")
echo "VERSION=$(jq -r .version ./browsers/chrome/manifest.json)" >> $GITHUB_ENV
- name: Commit config and version updates
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
with:
commit_message: 'Prepare release ${{ env.VERSION }}'
create_branch: true
branch: 'release/beta/${{ env.VERSION }}'
- name: Build Chrome Beta
run: |
npm run beta-chrome
- name: Publish to Chrome Store
env:
CWS_CLIENT_ID: ${{ secrets.CWS_CLIENT_ID }}
CWS_CLIENT_SECRET: ${{ secrets.CWS_CLIENT_SECRET }}
CWS_REFRESH_TOKEN: ${{ secrets.CWS_REFRESH_TOKEN }}
run: |
bash ./scripts/chrome-store-publish.sh ${{ secrets.CWS_BETA_EXTENSION_ID }} ./build/chrome/release/chrome-release-*.zip