Skip to content

Commit

Permalink
Merge branch 'feature/build_frontend' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nilgaar committed Jul 23, 2024
2 parents 0baabc9 + 2553f51 commit 7051749
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Build Backend
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/build_frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build frontend

on:
push:
branches: ["main", "develop"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Upload and run Frontend
run: |
sshpass -p $PASSWORD sftp -o StrictHostKeyChecking=no $USERNAME@$SERVER_IP <<EOF
put -r ./frontend
bye
EOF
sshpass -p $PASSWORD ssh -o StrictHostKeyChecking=no $USERNAME@$SERVER_IP "cd ~/frontend && sh run_frontend.sh"
env:
SERVER_IP: ${{ secrets.SERVER_IP }}
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}

0 comments on commit 7051749

Please sign in to comment.