Skip to content

Commit

Permalink
chore: deploy firefox addon via gh-pages
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Moessbauer <[email protected]>
  • Loading branch information
fmoessbauer committed Jun 24, 2024
1 parent 6083fbc commit fb8c165
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/deploy-update-manifest.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions .pages/firefox/updates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"addons": {
"[email protected]": {
"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"
}
]
}
}
}
3 changes: 2 additions & 1 deletion platform/firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "109.0"
"strict_min_version": "109.0",
"update_url": "https://siemens.github.io/linux-entra-sso/firefox/updates.json"
}
},
"action": {
Expand Down

0 comments on commit fb8c165

Please sign in to comment.