From ba5c9b25db93a8053c2543080b2e3d4a8a9d548e Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Sun, 18 Feb 2024 11:16:27 +0100 Subject: [PATCH] Reuse signing key --- .forgejo/workflows/build.yaml | 4 ++++ build.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 94fc9e6..29d47c3 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -8,6 +8,10 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies run: npm install + - name: Write signing key + run: echo "$SIGNING_KEY" > key.pem + env: + SIGNING_KEY: ${{secrets.SIGNING_KEY}} - name: Build extension run: ./build.sh - name: Upload extension diff --git a/build.sh b/build.sh index 7d38385..e66c56b 100755 --- a/build.sh +++ b/build.sh @@ -2,5 +2,5 @@ set -e rm -rf out proxy-settings.crx npx tsc -cp manifest.json *.html out +cp manifest.json ./*.html out npx crx3 -p key.pem -o proxy-settings.crx out