Skip to content

Commit

Permalink
new deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
source-Alexander-Rudenko committed Dec 15, 2024
1 parent c013283 commit 1ed8d62
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected] 'bash -s' <<EOF
# ./update_front.sh || exit 2
# EOF
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 [email protected] 'bash -s' <<EOF
cd front
sudo git pull origin testingWebpack
npm install
npm run build
EOF

0 comments on commit 1ed8d62

Please sign in to comment.