Skip to content

Commit

Permalink
add update_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ushi-as committed Feb 17, 2022
1 parent 4467d86 commit 1b9d20f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="lffnocdloekhnmiadpgfgknfbhgnppgl">
<updatecheck codebase="https://aboutsource.github.io/trektor/trektor.crx" version="${GITHUB_REF##*/}"/>
</app>
</gupdate>
EOF
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "release ${GITHUB_REF##*/}"
git push
1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 1b9d20f

Please sign in to comment.