Skip to content

remove confusing text (#8) #11

remove confusing text (#8)

remove confusing text (#8) #11

Workflow file for this run

name: Deploy to Amazon S3
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
env:
VITE_ENV: 'dev'
VITE_WHITELIST_MODE: true
VITE_GRIX_API_KEY: ${{ secrets.VITE_GRIX_API_KEY }}
VITE_PREMIA_KEY: ${{ secrets.VITE_PREMIA_KEY }}
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@v0.5.1
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ github.ref == 'refs/heads/main' && 'app.grix.finance' || 'v0.grix.finance' }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }}
AWS_REGION: us-east-1
SOURCE_DIR: 'dist'