pull/7431/head
zomars 2023-02-24 20:17:23 -07:00
parent 594d8b5efe
commit 88aa6d560e
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ runs:
key-3: ${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
with:
path: |
${{ github.workspace }}/apps/web/.next/cache
${{ github.workspace }}/apps/web/.next
**/.turbo/**
**/dist/**
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-${{ github.sha }}

View File

@ -3,13 +3,13 @@ description: "Creates a production build, caches it and restores if necessary"
runs:
using: "composite"
steps:
- uses: ./.github/actions/env-read-file
- uses: ./.github/actions/cache-db
id: cache-db
with:
DATABASE_URL: ${{ env.DATABASE_URL }}
- uses: ./.github/actions/cache-build
id: prod-build-cache
- uses: ./.github/actions/env-read-file
- name: Next.js production build
if: steps.cache-db.outputs.cache-hit != 'true'
shell: bash