fix: category title #270
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: | |
push: | |
branches: | |
- main | |
jobs: | |
release-please: | |
name: Release Please | |
runs-on: ubuntu-latest | |
outputs: | |
created: ${{ steps.release.outputs.release_created }} | |
version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} | |
tag_name: ${{ steps.release.outputs.tag_name }} | |
steps: | |
- id: release | |
name: Release | |
uses: google-github-actions/release-please-action@v3 | |
with: | |
release-type: simple | |
submit: | |
name: Submit | |
runs-on: ubuntu-latest | |
needs: | |
- release-please | |
if: github.event_name == 'workflow_dispatch' || needs.release-please.outputs.created | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- chrome | |
- firefox | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install | |
run: yarn install | |
- name: Build | |
run: yarn build:${{ matrix.platform }} | |
env: | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
TWITCH_CLIENT_ID: ${{ secrets.TWITCH_CLIENT_ID }} | |
TWITCH_REDIRECT_URI: ${{ secrets.TWITCH_REDIRECT_URI }} | |
- name: Update Manifest | |
run: npx dot-json@1 dist/manifest.json version ${{ needs.release-please.outputs.version }} | |
- name: Upload Release Artifact | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ matrix.platform }}-${{ needs.release-please.outputs.version }}.zip | |
run: cd dist && zip -r $ARCHIVE_NAME . && gh release upload ${{ needs.release-please.outputs.tag_name }} $ARCHIVE_NAME | |
- name: Submit | |
run: | | |
case ${{ matrix.platform }} in | |
chrome) | |
cd dist && npx chrome-webstore-upload-cli@2 upload --auto-publish | |
;; | |
firefox) | |
cd dist && npx web-ext-submit@6 | |
;; | |
esac | |
env: | |
CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} | |
REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }} | |
EXTENSION_ID: ${{ secrets.EXTENSION_ID }} | |
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} | |
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} |