Skip to content

Feat/#120 API endpoint for retrieving the profile data of the currently authenticated user #12

Feat/#120 API endpoint for retrieving the profile data of the currently authenticated user

Feat/#120 API endpoint for retrieving the profile data of the currently authenticated user #12

Workflow file for this run

name: Build, Test, and Deploy for Prod Branch

Check failure on line 1 in .github/workflows/prod.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/prod.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: test
on:
push:
branches:
- main
jobs:
build:
runs-on: self-hosted
defaults:
run:
working-directory: /var/www/aihomework/prod
steps:
- name: Pull from GitHub
run: |
git fetch origin
git reset --hard origin/main
- name: Install dependencies
run: yarn install
- name: Build the dist
run: yarn build
- name: Setup service file
run: sudo cp server-script/aihomeworkprod.service /etc/systemd/system
- name: Start the app
run: |
sudo systemctl daemon-reload
sudo systemctl restart aihomeworkprod
test:
-name: Run test
run: yarn jest