Skip to content

chore: remove environment configuration files and update deployment w… #20

chore: remove environment configuration files and update deployment w…

chore: remove environment configuration files and update deployment w… #20

Workflow file for this run

name: Deploy Marusya to Server
on:
push:
branches: ['main']
workflow_dispatch:
concurrency:
group: deploy
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
VITE_API_URL: https://cinemaguide.skillbox.cc
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- run: corepack enable
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: dist
- uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: 'dist/*'
target: ${{ secrets.DEPLOY_PATH }}