name: publish-firefox on: release: types: [released] permissions: contents: read jobs: publish: runs-on: ubuntu-latest environment: cd steps: - uses: actions/checkout@v3 - uses: robinraju/release-downloader@768b85c8d69164800db5fc00337ab917daf3ce68 # pin@v1.7 with: tag: ${{ github.ref_name }} fileName: "*" - name: Deploy to Firefox Addons id: addonsDeploy uses: cardinalby/webext-buildtools-firefox-addons-action@924ad87df7e4af50a654c164ad9e498dce260ffa # pin@v1.0.9 continue-on-error: true with: zipFilePath: builds/yomitan-firefox.zip extensionId: ${{ secrets.FF_EXTENSION_ID }} jwtIssuer: ${{ secrets.FF_JWT_ISSUER }} jwtSecret: ${{ secrets.FF_JWT_SECRET }} - name: Abort on upload error if: | steps.addonsDeploy.outcome == 'failure' && steps.addonsDeploy.outputs.sameVersionAlreadyUploadedError != 'true' && steps.addonsDeploy.outputs.timeoutError != 'true' run: exit 1