Skip to content

Commit 6b3f156

Browse files
committed
Add sign action
Add sign action; Fix typo in lint arg
1 parent e827cae commit 6b3f156

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
- run: |
2626
sed -i "s/CI_COMMIT_TAG/0.1.0/" manifest.json
2727
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/*"

.github/workflows/sign.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

0 commit comments

Comments
 (0)