Release to web stores #95
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 to web stores | |
on: | |
workflow_dispatch: | |
inputs: | |
chrome: | |
type: boolean | |
description: Chrome | |
default: true | |
firefox: | |
type: boolean | |
description: Firefox | |
default: true | |
jobs: | |
release: | |
name: Release to web stores | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: yarn | |
- name: Install packages | |
run: yarn install --immutable | |
- name: Build extension | |
run: yarn run-p -l "build chrome-mv3 production" "build firefox production" | |
env: | |
DROPBOX_API_KEY: ${{ secrets.DROPBOX_API_KEY }} | |
DROPBOX_API_SECRET: ${{ secrets.DROPBOX_API_SECRET }} | |
GOOGLE_DRIVE_API_KEY: ${{ secrets.GOOGLE_DRIVE_API_KEY }} | |
GOOGLE_DRIVE_API_SECRET: ${{ secrets.GOOGLE_DRIVE_API_SECRET }} | |
- name: Release to web stores | |
run: yarn semantic-release | |
env: | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} | |
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }} | |
AMO_API_KEY: ${{ secrets.AMO_API_KEY }} | |
AMO_API_SECRET: ${{ secrets.AMO_API_SECRET }} | |
DROPBOX_API_KEY: ${{ secrets.DROPBOX_API_KEY }} | |
DROPBOX_API_SECRET: ${{ secrets.DROPBOX_API_SECRET }} | |
GOOGLE_DRIVE_API_KEY: ${{ secrets.GOOGLE_DRIVE_API_KEY }} | |
GOOGLE_DRIVE_API_SECRET: ${{ secrets.GOOGLE_DRIVE_API_SECRET }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RELEASE_CHROME: ${{ inputs.chrome }} | |
RELEASE_FIREFOX: ${{ inputs.firefox }} |