Files
hereconnect/.gitea/workflows/deploy.yaml
T
ti 05cfe8b4ea
Main daploy / deploy (push) Failing after 28s
build into volume
2024-11-07 14:01:22 +02:00

26 lines
730 B
YAML

name: Main daploy
run-name: ${{ github.actor }} deployed to build branch
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
container:
volumes:
- /www/hereconnect.condev.ru:/www/hereconnect.condev.ru
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Clean install dependencies and build
run: |
npm ci
npm run build-only -- --outDir /www/hereconnect.condev.ru/build
mv /www/hereconnect.condev.ru/current /www/hereconnect.condev.ru/old && mv /www/hereconnect.condev.ru/build /www/hereconnect.condev.ru/current && rm -rf /www/hereconnect.condev.ru/old