From 1ed8d62ab589f592409560c6d50ebb7083c9b599 Mon Sep 17 00:00:00 2001 From: Alexander Rudenko Date: Sun, 15 Dec 2024 23:45:07 +0300 Subject: [PATCH] new deploy --- .github/workflows/deploy.yml | 46 +++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0aa398b..2d6a3b8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,24 +1,26 @@ -# name: Deploy Frontend +name: Deploy Frontend +on: + push: + branches: + - testingWebpack -# on: -# push: -# branches: -# - testingWebpack +jobs: + deploy: + runs-on: ubuntu-latest -# jobs: -# deploy: -# runs-on: ubuntu-latest - -# steps: -# - name: Set up SSH -# run: | -# mkdir -p ~/.ssh -# echo "${{ secrets.VM_SSH_KEY }}" > ~/.ssh/id_ed25519 -# chmod 600 ~/.ssh/id_ed25519 -# echo "Host 37.139.40.252 -# StrictHostKeyChecking no" > ~/.ssh/config -# - name: Execute script on VM -# run: | -# ssh ubuntu@37.139.40.252 'bash -s' < ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + echo "Host 37.139.40.252 + StrictHostKeyChecking no" > ~/.ssh/config + - name: Execute script on VM + run: | + ssh ubuntu@37.139.40.252 'bash -s' <