Skip to content

Fix distribution helper import path (#171) #48

Fix distribution helper import path (#171)

Fix distribution helper import path (#171) #48

Workflow file for this run

name: Deploy to Production
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
- 'docs/**'
- 'README.md'
- 'BRANCH_STRATEGY.md'
permissions:
contents: read
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Bun
uses: oven-sh/setup-bun@v1.1.2
with:
bun-version: "1.1.0"
- name: Install dependencies
working-directory: apps/frontend-new
run: bun install --frozen-lockfile --production=false
env:
NODE_ENV: production
- name: Build frontend
working-directory: apps/frontend-new
run: bun run build
env:
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
NODE_ENV: production
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.0.1
with:
publish-dir: './apps/frontend-new/.next'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 5