-
Notifications
You must be signed in to change notification settings - Fork 49
53 lines (47 loc) · 1.74 KB
/
github-actions.yml
File metadata and controls
53 lines (47 loc) · 1.74 KB
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
name: "Github Release"
on:
push:
branches:
- "2.0"
jobs:
pre-release:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm ci
- run: npm run build --if-present
# - run: npm run zip --if-present
- id: packExtensionDir
uses: cardinalby/webext-buildtools-pack-extension-dir-action@v1
with:
extensionDir: '.build/'
zipFilePath: 'quick-javascript-switcher.zip'
- id: buildCrx
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
with:
zipFilePath: 'quick-javascript-switcher.zip'
crxFilePath: 'quick-javascript-switcher.crx'
privateKey: ${{ secrets.CHROME_CRX_PRIVATE_KEY }}
updateXmlPath: 'update.xml'
updateXmlCodebaseUrl: 'https://github.com/maximelebreton/quick-javascript-switcher/releases/download/latest/quick-javascript-switcher.crx'
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
files: |
quick-javascript-switcher.zip
quick-javascript-switcher.crx
# - name: Chrome Extension upload & publish
# uses: Passiverecords/chrome-extension-upload-action@1.4.1
# with:
# client-id: ${{ secrets.CHROME_CLIENT_ID }}
# client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
# refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
# file-name: 'quick-javascript-switcher.zip'
# app-id: 'geddoclleiomckbhadiaipdggiiccfje'
# publish: false