examples: add public deployment of LinearLite #5
Workflow file for this run
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: Deploy Linearlite Production | |
on: | |
push: | |
branches: ['main'] | |
paths: ['examples/linearlite/**'] | |
pull_request: | |
paths: ['examples/linearlite/**'] | |
concurrency: | |
group: prod-deploy-group | |
jobs: | |
deploy-linearlite: | |
name: Deploy Linearlite Production | |
environment: Production | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: examples/linearlite | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Cache SST state | |
uses: actions/cache@v4 | |
with: | |
path: .sst | |
key: sst-cache-main-${{ runner.os }} | |
restore-keys: | | |
sst-cache-main-${{ runner.os }} | |
- name: Deploy to production stack | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_DEFAULT_ACCOUNT_ID }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
NEON_API_KEY: ${{ secrets.NEON_API_KEY }} | |
NEON_PROJECT_ID: ${{ secrets.NEON_PROJECT_ID }} | |
ELECTRIC_API: ${{ secrets.ELECTRIC_API }} | |
ELECTRIC_ADMIN_API: ${{ secrets.ELECTRIC_ADMIN_API }} | |
# HONEYCOMB_API_KEY: ${{ secrets.HONEYCOMB_API_KEY }} TODO | |
run: | | |
pnpm sst deploy --stage production |