File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 25
25
- run : |
26
26
sed -i "s/CI_COMMIT_TAG/0.1.0/" manifest.json
27
27
npm install --global web-ext
28
- web-ext lint --self-hosted --warnings-as-errors --- ignore-files "info/*"
28
+ web-ext lint --self-hosted --warnings-as-errors --ignore-files "info/*"
Original file line number Diff line number Diff line change
1
+ name : sign
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ lint-ext :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ # Checks-out your repository under $GITHUB_WORKSPACE, so job can access it
13
+ - uses : actions/checkout@v3
14
+
15
+ # Get nodejs env
16
+ - uses : actions/setup-node@v3
17
+
18
+ # Install and run sign
19
+ - env :
20
+ WEB_EXT_API_SECRET : ${{ secrets.FF_API_SECRET }}
21
+ WEB_EXT_API_KEY : ${{ secrets.FF_API_KEY }}
22
+ WEB_EXT_ID : gitlab-pipeline-variables@cenness
23
+ run : |
24
+ sed -i "s/CI_COMMIT_TAG/${GITHUB_REF_NAME}/" manifest.json
25
+ npm install --global web-ext
26
+ web-ext sign --channel unlisted --ignore-files "info/*"
27
+ mv ./web-ext-artifacts/*.xpi ./web-ext-artifacts/gitlab-pipeline-variables-${GITHUB_REF_NAME}.xpi
28
+
29
+ # Get xpi
30
+ - uses : actions/upload-artifact@v3
31
+ with :
32
+ name : extension-file
33
+ path : ${{ github.workspace }}/web-ext-artifacts/*.xpi
34
+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments