Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .cargo/config.toml

This file was deleted.

114 changes: 94 additions & 20 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,106 @@ env:
CLOUDFLARE_DEFAULT_ACCOUNT_ID: f02b3ef168fe64129e9941b4fb2e4dc1

jobs:
sst:
name: SST
landing:
name: Landing
runs-on: ubuntu-latest
environment: production
concurrency:
group: production
environment:
name: landing
url: ${{ steps.result.outputs.DEPLOYMENT_URL }}
env:
VITE_MATTRAX_CLOUD_ORIGIN: https://web.mattrax.app
steps:
- name: Git clone the repository
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: "arn:aws:iam::101829795063:role/mattrax-gh-actions"
aws-region: us-east-1
role-session-name: mattrax-sst-workflow
# - uses: pnpm/action-setup@v4
# with:
# version: latest

- uses: pnpm/action-setup@v4
with:
version: latest
# - name: Install dependencies
# run: pnpm i

- name: Rust cache
uses: Swatinem/rust-cache@v2
# - name: Build
# working-directory: apps/landing
# env:
# NITRO_PRESET: cloudflare_pages
# run: pnpm build

- name: Install dependencies
run: pnpm i
# - name: Deploy
# working-directory: apps/landing
# run: |
# set -o pipefail
# pnpm dlx wrangler pages deploy dist/ --project-name landing 2>&1 | tee -a BUILD_OUTPUT

- name: SST
run: pnpm sst deploy --stage prod
# - name: Export `DEPLOYMENT_URL`
# working-directory: apps/landing
# id: result
# run: echo "DEPLOYMENT_URL=$(grep -Eo 'https://[^ >]+' BUILD_OUTPUT|head -1)" >> $GITHUB_OUTPUT

# web:
# name: Web
# runs-on: ubuntu-latest
# environment:
# name: web
# url: ${{ steps.result.outputs.DEPLOYMENT_URL }}
# steps:
# - name: Git clone the repository
# uses: actions/checkout@v4

# - uses: pnpm/action-setup@v4
# with:
# version: latest

# - name: Install dependencies
# run: pnpm i

# - name: Build
# working-directory: apps/web
# env:
# NITRO_PRESET: cloudflare_pages
# run: pnpm build

# - name: Deploy
# working-directory: apps/web
# run: |
# set -o pipefail
# pnpm dlx wrangler pages deploy dist/ --project-name web 2>&1 | tee -a BUILD_OUTPUT

# - name: Export `DEPLOYMENT_URL`
# working-directory: apps/web
# id: result
# run: echo "DEPLOYMENT_URL=$(grep -Eo 'https://[^ >]+' BUILD_OUTPUT|head -1)" >> $GITHUB_OUTPUT

# api:
# name: API
# runs-on: ubuntu-latest
# environment:
# name: api
# url: ${{ steps.result.outputs.DEPLOYMENT_URL }}
# steps:
# - name: Git clone the repository
# uses: actions/checkout@v4

# - uses: pnpm/action-setup@v4
# with:
# version: latest

# - name: Install dependencies
# run: pnpm i

# - name: Build
# working-directory: apps/api
# env:
# NITRO_PRESET: cloudflare_pages
# run: pnpm build

# - name: Deploy
# working-directory: apps/api
# run: |
# set -o pipefail
# pnpm dlx wrangler deploy src/index.ts --define "import.meta.env.GIT_SHA:'$(git rev-parse HEAD)'" 2>&1 | tee -a BUILD_OUTPUT

# - name: Export `DEPLOYMENT_URL`
# working-directory: apps/api
# id: result
# run: echo "DEPLOYMENT_URL=$(grep -Eo 'https://[^ >]+' BUILD_OUTPUT|head -1)" >> $GITHUB_OUTPUT
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

Loading
Loading