Skip to content

feat: create quiz and questions #260

feat: create quiz and questions

feat: create quiz and questions #260

name: Publish
on:
push:
branches:
- development
jobs:
publish:
environment: development
runs-on: development
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Fetch secrets
env:
ENV_SECRETS: ${{ secrets.ENV_SECRETS }}
run: echo "$ENV_SECRETS" > env.json
- name: Create service account for storage
env:
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
run: echo "$GCP_SERVICE_ACCOUNT" > services/api/credentials.json
- name: Install dependencies
run: |
sudo npm -g i pnpm@9
pnpm install --frozen-lockfile
- name: Docker Build
run: sudo make prod-build
- name: Docker Stop Existing Run
run: sudo make prod-stop
- name: Docker Start
run: sudo make prod-start-detach