This commit is contained in:
parent
a014780b5e
commit
0166b2206c
1 changed files with 0 additions and 27 deletions
27
.github/workflows/deploy.yml
vendored
27
.github/workflows/deploy.yml
vendored
|
@ -1,27 +0,0 @@
|
||||||
name: Deploy
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["main"]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
env:
|
|
||||||
SSH_KEY: ${{secrets.SSH_KEY}}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Use Node.js 16
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
cache: "npm"
|
|
||||||
- run: npm install
|
|
||||||
- run: npm run build
|
|
||||||
- run: mkdir ~/.ssh
|
|
||||||
- run: echo "$SSH_KEY" >> ~/.ssh/id_rsa_embroideryviewer
|
|
||||||
- run: chmod 400 ~/.ssh/id_rsa_embroideryviewer
|
|
||||||
- run: echo -e "Host embroideryviewer\n\tUser embroideryviewer\n\tHostname 45.76.5.44\n\tIdentityFile ~/.ssh/id_rsa_embroideryviewer\n\tStrictHostKeyChecking No" >> ~/.ssh/config
|
|
||||||
- run: rsync -avz --progress dist/ embroideryviewer:web/prod
|
|
Loading…
Add table
Reference in a new issue