Skip to content

Commit

Permalink
copies files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
emrergin committed Jan 1, 2024
1 parent 4ee9f50 commit 0a0d510
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ jobs:
path: .next/standalone

deploy:
needs: build
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: 1
timeout-minutes: 5
steps:
- name: Download files
uses: actions/download-artifact@v2
with:
name: app
path: /temp
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@v1.0.2
with:
Expand All @@ -43,6 +47,7 @@ jobs:
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /temp /home/zulmet/servers/belief/standalone
cp /home/zulmet/servers/.env /home/zulmet/servers/belief/standalone/.env
sed -i 's/3000/3002/g' /home/zulmet/servers/belief/standalone/server.js
pm2 restart /home/zulmet/servers/belief/standalone/server.js --name belief
Expand Down

0 comments on commit 0a0d510

Please sign in to comment.