Skip to content

Build & Deploy Uplim Info Gmail #18

Build & Deploy Uplim Info Gmail

Build & Deploy Uplim Info Gmail #18

name: Build & Deploy Uplim Info Gmail
on:
push:
branches:
- main
paths:
- packages/uplim-info-gmail/**
- packages/utils/**
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js 20.11.0
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
- name: Install Packages
run: |
corepack enable
yarn workspaces focus uplim-info-gmail
- name: Create .clasprc.json
run: |
echo "${{ secrets.CLASP_RC_BASE64 }}" | base64 --decode > ~/.clasprc.json
- name: Create .clasp.json
run: |
cat > ./packages/uplim-info-gmail/.clasp.json <<EOF
{
"scriptId": "${{ secrets.UPLIM_INFO_GMAIL_SCRIPT_ID }}",
"rootDir": "./dist"
}
EOF
- name: Build & Deploy
run: |
yarn workspace uplim-info-gmail push