Files
Aut.ManagementFaculty/.gitea/workflows/deploy.yml
T

33 lines
761 B
YAML

name: Deploy edu.mstaut.ir
on:
push:
branches: [master]
workflow_dispatch:
concurrency:
group: edu-production
cancel-in-progress: false
jobs:
deploy:
runs-on: local-host
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Build Next.js standalone (host; npm cache reused between runs)
env:
NEXT_PUBLIC_SITE_URL: https://edu.mstaut.ir
run: bash scripts/ci-build-prebuilt.sh
- name: Roll out (runtime image, backup, migrate, smoke, swap)
run: |
set -euo pipefail
rm -rf prebuilt/static
PREBUILT_DIR="$GITHUB_WORKSPACE/prebuilt" bash scripts/deploy-production.sh