Skip to content

Deploy

Deploy #38

Workflow file for this run

name: deploy
permissions:
contents: write
issues: write
pull-requests: write
on:
workflow_dispatch:
inputs:
chrome:
type: boolean
default: true
description: Chrome Web Store
firefox:
type: boolean
default: true
description: Firefox Add-ons
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn install --immutable
- run: yarn build-all
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 }}
- run: yarn semantic-release
env:
# Chrome Web Store
RELEASE_CHROME: ${{ inputs.chrome }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
# Firefox Add-ons
RELEASE_FIREFOX: ${{ inputs.firefox }}
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
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}