Skip to content

Cache turbo artifacts for deployment. #11

Cache turbo artifacts for deployment.

Cache turbo artifacts for deployment. #11

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
deploy_backend:
runs-on: ubuntu-latest
env:
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
PRODUCTS_TABLE_NAME: ${{ secrets.PRODUCTS_TABLE_NAME }}
PRODUCT_IMAGES_BUCKET_NAME: ${{ secrets.PRODUCT_IMAGES_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '19'
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
- name: Install Dependencies
run: yarn install
- name: Deploy
run: yarn deploy:backend