Skip to content

feat: rewrite everything from scratch, use classes, decorators etc (#34) #209

feat: rewrite everything from scratch, use classes, decorators etc (#34)

feat: rewrite everything from scratch, use classes, decorators etc (#34) #209

Workflow file for this run

name: Deploy Code
on:
push:
branches: [main]
paths-ignore:
- archive/**
- CHANGELOG.md
- README.md
- LICENCE
- eslintrc.json
- eslintignore
- .prettierrc
- .gitignore
- .husky
jobs:
build:
name: Build updated code
runs-on: self-hosted
steps:
# note to self: Checks out to ~/actions-runner/_work/InterChat/InterChat/
- name: Backup Logs
run: |
if [ -d "logs/" ]; then
cp -r logs/ ~/console-logs/$(date +'%Y-%m-%d-%M')
fi
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
# temporary fix for installing deps for api
run: |
npm install
cd api && npm install
- name: Build code
run: |
cp ~/important/interchat-env .env
npm run build --if-present
cd api && npm run build --if-present
- name: Deploy Commands
run: npm run register:commands -- -b
- name: Prune Dev-dependencies
run: npm prune --omit=dev
- name: Mark build as successful
run: touch build-successful.tmp