mirror of
https://github.com/hazemKrimi/touch-programming.git
synced 2026-05-02 02:30:26 +00:00
More workflow fixing
This commit is contained in:
@@ -34,19 +34,14 @@ jobs:
|
|||||||
cd server
|
cd server
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o executable
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o executable
|
||||||
|
|
||||||
- name: Prepare to deploy
|
|
||||||
run: |
|
|
||||||
mkdir touch-programming.hazemkrimi.tech
|
|
||||||
mkdir touch-programming.hazemkrimi.tech/public
|
|
||||||
mkdir touch-programming.hazemkrimi.tech/api
|
|
||||||
cp -r client/build touch-programming.hazemkrimi.tech/public
|
|
||||||
cp server/executable touch-programming.hazemkrimi.tech/api
|
|
||||||
|
|
||||||
- name: Deploy to VPS
|
- name: Deploy to VPS
|
||||||
uses: appleboy/scp-action@v0.1.4
|
env:
|
||||||
with:
|
HOST: hazemkrimi.tech
|
||||||
host: hazemkrimi.tech
|
USER: deploy
|
||||||
username: deploy
|
KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
key: ${{ secrets.DEPLOY_SSH_KEY }}
|
run: |
|
||||||
source: "touch-programming.hazemkrimi.tech"
|
mkdir -p ~/.ssh
|
||||||
target: "/var/www"
|
echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_vps_deploy
|
||||||
|
chmod 600 ~/.ssh/id_vps_deploy
|
||||||
|
scp -r client/build $USER@$HOST:/var/www/touch-programming.hazemkrimi.tech/public
|
||||||
|
scp -r server/executable $USER@$HOST:/var/www/touch-programming.hazemkrimi.tech/api
|
||||||
|
|||||||
Reference in New Issue
Block a user