Skip to content

pull master to next #70

pull master to next

pull master to next #70

Workflow file for this run

name: Deploy to Next
on:
push:
branches:
- next
pull_request:
types:
- closed
branches:
- next
workflow_dispatch:
branches: ["next"]
jobs:
build:
runs-on:
group: Default
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install
- name: Fetch OpenAPI schema
run: npm run open:api
- name: Generate API client
run: npm run openapi-ts
- name: Build and deploy to Next environment
run: docker-compose -f docker-compose.next.yml up -d --build
env:
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_API_URL }}
NEXT_PUBLIC_URL: ${{ secrets.NEXT_URL }}
SECRET_LOGIN_KEY: ${{ secrets.SECRET_LOGIN_KEY }}