Skip to content

Commit

Permalink
Added chromium targets to build
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieLD committed Feb 2, 2023
1 parent d210ecf commit 674c305
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
build:
- release
- dev
include:
- browser: firefox
extension: xpi
- browser: chromium
extension: crx

permissions:
contents: write
steps:
Expand Down Expand Up @@ -51,20 +57,17 @@ jobs:
run: |
cp ./targets/${{ matrix.browser }}/${{ matrix.build }}/manifest.json ./public
- name: "Extension Build"
if: matrix.browser == 'firefox'
- uses: montudor/action-zip@v1
name: "Pack Extension"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: public
filename: "tabby-${{ matrix.browser }}-${{ matrix.build }}.xpi"
args: zip -qq -r tabby-${{ matrix.browser }}-${{ matrix.build }}.${{ matrix.extension }} dir

- name: "Create Release"
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
${{ steps.web-ext-build.outputs.target }}
tabby-${{ matrix.browser }}-${{ matrix.build }}.${{ matrix.extension }}
targets/${{ matrix.browser }}/${{ matrix.build }}/update-${{ matrix.browser }}-${{ matrix.build }}.json

0 comments on commit 674c305

Please sign in to comment.