Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeocfg committed Sep 28, 2023
1 parent cc8a993 commit 38efb6d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,24 @@ jobs:
with:
node-version: 16.x
#cache: 'npm'
- run: cd /frontend
- run: npm install
working-directory: ./frontend
- run: REACT_APP_STAGE=production
- run: npm run build
working-directory: ./frontend
- name: ssh deploy on remote server
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
REMOTE_HOST: ${{ secrets.DB_HOST }}
REMOTE_USER: centos
REMOTE_PORT: 22
SOURCE: './frontend/build/'
TARGET: ${{ secrets.DEPLOY_TARGET }}
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
REMOTE_HOST: ${{ secrets.DB_HOST }}
REMOTE_USER: centos
REMOTE_PORT: 22
SOURCE: 'build/'
SOURCE: './frontend/build/'
TARGET: ${{ secrets.DEPLOY_TARGET }}

0 comments on commit 38efb6d

Please sign in to comment.