1.6.2 #19
Workflow file for this run
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: Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- name: Install dependencies | |
run: npm ci | |
- name: Update version in manifest.json | |
run: npx dot-json@1 manifest.json version "${{github.ref_name}}" | |
- name: Package | |
id: package | |
run: | | |
npm run package | |
echo "zip_path=./web-ext-artifacts/accessibility_checker_for_github_markdown-${{github.ref_name}}.zip" >> "$GITHUB_OUTPUT" | |
- name: Upload packaged extension | |
run: gh release upload ${{ github.event.release.tag_name }} ${{ steps.package.outputs.zip_path }} --clobber | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# TODO: run publish in parallel as a second job | |
- name: Submit to Chrome Web Store | |
run: npx chrome-webstore-upload-cli@2 upload --auto-publish --source ${{ steps.package.outputs.zip_path }} | |
env: | |
EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | |
CLIENT_ID: ${{ secrets.CHROME_STORE_CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CHROME_STORE_CLIENT_SECRET }} | |
REFRESH_TOKEN: ${{ secrets.CHROME_STORE_CLIENT_REFRESH_TOKEN }} | |
- name: Submit to AMO (Mozilla Add-ons) | |
run: npx web-ext@7 sign --use-submission-api --channel listed --ignore-files .* node_modules web-ext-artifacts src "assets/!(icon*)" @types *config* package* | |
env: | |
WEB_EXT_API_KEY: ${{ secrets.AMO_API_KEY }} | |
WEB_EXT_API_SECRET: ${{ secrets.AMO_API_SECRET }} |