From 1b9d20f3ec58b31245d8435be4fcacb2c879ab3d Mon Sep 17 00:00:00 2001 From: Martin Kalcher Date: Thu, 17 Feb 2022 13:05:01 +0100 Subject: [PATCH] add update_url --- .github/workflows/main.yml | 27 ++++++++++++++++++++++++++- manifest.json | 1 + 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d44034c..5ea36eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,32 @@ jobs: - run: | export DISPLAY=:99 sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & - chrome --pack-extension=trektor + echo -n "${CHROME_EXTENSION_KEY}" > trektor.pem + chrome --pack-extension=trektor --pack-extension-key=trektor.pem + env: + CHROME_EXTENSION_KEY: ${{ secrets.CHROME_EXTENSION_KEY }} - uses: "softprops/action-gh-release@v1" with: files: "trektor.crx" + + pages: + runs-on: ubuntu-latest + needs: [crx] + steps: + - uses: actions/checkout@v2 + with: + ref: gh-pages + - run: | + curl -LOf "https://github.com/aboutsource/trektor/releases/download/${GITHUB_REF##*/}/trektor.crx" + cat > update.xml < + + + + + EOF + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "release ${GITHUB_REF##*/}" + git push diff --git a/manifest.json b/manifest.json index 126a202..cb189b5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,7 @@ { "manifest_version": 2, "name": "Trektor", + "update_url": "https://aboutsource.github.io/trektor/update.xml", "description": "Browser-Extension zum automatischen Anlegen von Toggl tracking tasks", "version": "0.0.4", "browser_specific_settings": {