Skip to content

Deploy

Deploy #46

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
firefox:
type: boolean
default: true
description: Firefox
jobs:
deploy:
name: Deploy
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: |
pnpm build
pnpm build --browser firefox
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: Deploy
run: pnpm semantic-release
env:
# Chrome
DEPLOY_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
DEPLOY_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 }}