Publish on Firefox #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish on Firefox" | |
on: workflow_dispatch | |
jobs: | |
firefox-publish: | |
name: "Pre Release Extension" | |
runs-on: "ubuntu-latest" | |
environment: | |
name: development | |
url: "https://github.com/tattle-made/Uli/releases" | |
steps: | |
- name: "Checkout Development Branch" | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Get commit SHA | |
shell: bash | |
run: | | |
echo "setting variables" | |
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | |
- name: "Build and Test" | |
run: | | |
cd browser-extension/plugin | |
ls | |
pwd | |
npm install | |
npm run build:firefox | |
cd dist | |
zip extension.zip * -r | |
- name: "Upload to firefox" | |
uses: cardinalby/webext-buildtools-firefox-addons-action@v1 | |
with: | |
zipFilePath: "./browser-extension/plugin/dist/extension.zip" | |
extensionId: "{6a87480c-944d-43de-aa34-95ee4052f9c5}" | |
jwtIssuer: ${{ secrets.FIREFOX_JWT_ISSUER }} | |
jwtSecret: ${{ secrets.FIREFOX_JWT_SECRET }} |