From fb8c1657f62edaecf7bbffe0ec12d087ff80e1e2 Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Mon, 24 Jun 2024 18:14:03 +0200 Subject: [PATCH] chore: deploy firefox addon via gh-pages Signed-off-by: Felix Moessbauer --- .github/workflows/deploy-update-manifest.yml | 38 ++++++++++++++++++++ .pages/firefox/updates.json | 12 +++++++ platform/firefox/manifest.json | 3 +- 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-update-manifest.yml create mode 100644 .pages/firefox/updates.json diff --git a/.github/workflows/deploy-update-manifest.yml b/.github/workflows/deploy-update-manifest.yml new file mode 100644 index 0000000..09d7199 --- /dev/null +++ b/.github/workflows/deploy-update-manifest.yml @@ -0,0 +1,38 @@ +# SPDX-FileCopyrightText: Copyright 2024 Siemens AG +# +# SPDX-License-Identifier: MPL-2.0 +name: Deploy Firefox Addon Update Manifest + +on: + push: + branches: ["fm/test-deploy-update-manifest"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: '.pages/' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.pages/firefox/updates.json b/.pages/firefox/updates.json new file mode 100644 index 0000000..c6c5cd3 --- /dev/null +++ b/.pages/firefox/updates.json @@ -0,0 +1,12 @@ +{ + "addons": { + "linux-entra-sso@example.com": { + "updates": [ + { + "version": "0.6.1", + "update_link": "https://github.com/siemens/linux-entra-sso/releases/download/0.6.1/Linux-Entra-SSO-v0.6.1.firefox.signed.xpi" + } + ] + } + } + } diff --git a/platform/firefox/manifest.json b/platform/firefox/manifest.json index 431e460..1e8a44f 100644 --- a/platform/firefox/manifest.json +++ b/platform/firefox/manifest.json @@ -9,7 +9,8 @@ "browser_specific_settings": { "gecko": { "id": "linux-entra-sso@example.com", - "strict_min_version": "109.0" + "strict_min_version": "109.0", + "update_url": "https://siemens.github.io/linux-entra-sso/firefox/updates.json" } }, "action": {