simplify deploy
This commit is contained in:
parent
12326c2a6d
commit
8788ae4d50
|
@ -21,22 +21,6 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 install
|
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 install
|
||||||
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
|
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
|
||||||
- name: Configure SSH
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh/
|
|
||||||
echo $SSH_KEY > ~/.ssh/staging.key
|
|
||||||
chmod 600 ~/.ssh/staging.key
|
|
||||||
cat >>~/.ssh/config <<END
|
|
||||||
Host staging
|
|
||||||
HostName $SSH_HOST
|
|
||||||
User $SSH_USER
|
|
||||||
IdentityFile ~/.ssh/staging.key
|
|
||||||
StrictHostKeyChecking no
|
|
||||||
END
|
|
||||||
env:
|
|
||||||
SSH_USER: ubuntu
|
|
||||||
SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
|
|
||||||
SSH_HOST: ${{ secrets.STAGING_SSH_HOST }}
|
|
||||||
- run: cd ${{ gitea.workspace }}
|
- run: cd ${{ gitea.workspace }}
|
||||||
- run: scp -vo StrictHostKeyChecking=no -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/backend
|
- run: scp -vo StrictHostKeyChecking=no -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/backend
|
||||||
- run: scp -vo StrictHostKeyChecking=no -r ./typescript/frontend-marios2/* ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/frontend/
|
- run: scp -vo StrictHostKeyChecking=no -r ./typescript/frontend-marios2/* ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/frontend/
|
||||||
|
|
Loading…
Reference in New Issue