Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
feat: pack extension
Browse files Browse the repository at this point in the history
  • Loading branch information
rofe committed Oct 28, 2021
1 parent a7f6616 commit 1c2d347
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/branch-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@ jobs:
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.SSH-KEY }}
- name: Pack chrome extension
run: |
if [ "`git status -s src/extension`" != "" ]; then
echo "Packing chrome extension"
# write private key file
echo "{{ secrets.CHROME_EXT_PEM }}" > .extension.pem
chmod 600 .extension.pem
# pack crx file
npm install --no-save crx3
./node_modules/.bin/crx3 ./src/extension \
-p ./.extension.pem \
-o ./src/sidekick/extension.crx \
-x ./src/sidekick/extension.xml \
--crxURL https://www.hlx.live/tools/sidekick/extension.crx
else
echo "No changes in extension detected"
fi
- name: Checkout target repo
uses: actions/checkout@v2
with:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ jobs:
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.SSH-KEY }}
- name: Pack chrome extension
run: |
if [ "`git status -s src/extension`" != "" ]; then
echo "Packing chrome extension"
# write private key file
echo "{{ secrets.CHROME_EXT_PEM }}" > .extension.pem
chmod 600 .extension.pem
# pack crx file
npm install --no-save crx3
./node_modules/.bin/crx3 ./src/extension \
-p ./.extension.pem \
-o ./src/sidekick/extension.crx \
-x ./src/sidekick/extension.xml \
--crxURL https://www.hlx.live/tools/sidekick/extension.crx
else
echo "No changes in extension detected"
fi
- name: Checkout target repo
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 1c2d347

Please sign in to comment.