Skip to content

Commit

Permalink
Condensed checkout, updated paths accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Oct 16, 2024
1 parent b346e31 commit 636e930
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish-to-amo-on-ff-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ jobs:
- name: Checkout adamlui/you.com-omnibox
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_SYNC_PAT }}
repository: adamlui/you.com-omnibox
path: adamlui/you-omnibox
sparse-checkout: firefox
fetch-depth: 2

- name: Check FF manifest for version bump
run: |
cd ${{ github.workspace }}/adamlui/you-omnibox
CURRENT_VER=$(cat firefox/extension/manifest.json | grep '"version"' | sed -E 's/.*"version": "(.*)".*/\1/')
PREV_VER=$(git show HEAD^:firefox/extension/manifest.json | grep '"version"' | sed -E 's/.*"version": "(.*)".*/\1/')
if [ "$(printf '%s\n' "$PREV_VER" "$CURRENT_VER" | sort -V | head -n 1)" != "$CURRENT_VER" ] ; then
Expand All @@ -31,14 +28,14 @@ jobs:
- name: Create zipball
if: env.VERSION_CHANGED == 'true'
run: |
cd ${{ github.workspace }}/adamlui/you-omnibox/firefox/extension
cd firefox/extension
zip -r ../../extension.zip .
- name: Publish to AMO
if: env.VERSION_CHANGED == 'true'
uses: cardinalby/webext-buildtools-firefox-addons-action@v1
with:
zipFilePath: "${{ github.workspace }}/adamlui/you-omnibox/extension.zip"
zipFilePath: 'extension.zip'
extensionId: '[email protected]'
jwtIssuer: ${{ secrets.AMO_ISSUER }}
jwtSecret: ${{ secrets.AMO_SECRET }}

0 comments on commit 636e930

Please sign in to comment.