Files
TriggerFrontend/.gitea/workflows/deploy_to_prod.yaml
Sean Edmunds f0eb1a3a52
All checks were successful
Deploy to production / build (push) Successful in 56s
Testing workflow changes
2026-02-06 12:51:47 -06:00

34 lines
1.0 KiB
YAML

name: Deploy to production
run-name: ${{ gitea.actor }} is deploying to production
on: [push]
jobs:
build:
runs-on: localserver
steps:
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: https://gitea.com/ScMi1/checkout@v1
- name: Change directory
run: |
echo "Moving to /home/magnum/TriggerFrontend"
cd /home/magnum/TriggerFrontend
- name: Pull latest changes
run: |
/usr/bin/git log -1 --format='%H'
git fetch
git pull
/usr/bin/git log -1 --format='%H'
- name: Install dependencies
run: npm install
- name: Build
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npm run build