Browse Source

Merge pull request #30 from getumbrel/v0.1.1

GitHub testnet deploy action
readme
Mayank Chhabra 5 years ago
committed by GitHub
parent
commit
da6cad7556
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      .github/workflows/main.yml
  2. 9
      package.json

30
.github/workflows/main.yml

@ -0,0 +1,30 @@
name: testnet.getumbrel.com
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install npm dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Deploy to the testnet server
uses: mayankchhabra/ssh-deploy@v2.1.2
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rltgoDzvO --delete"
SOURCE: "dist/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}

9
package.json

@ -4,12 +4,9 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build": "vue-cli-service build --mode production",
"lint": "vue-cli-service lint",
"deploy-static": "vue-cli-service build && aws s3 sync ./dist s3://live.getumbrel.com",
"deploy-local": "vue-cli-service build --mode production && rsync -aP --delete dist/ umbrel@umbrel.local:/home/umbrel/nginx/www",
"deploy-stage": "vue-cli-service build --mode staging && rsync -aP --delete dist/ umbrel@34.199.196.182:/home/umbrel/nginx/www",
"deploy-stage-cached": "rsync -aP --delete dist/ umbrel@34.199.196.182:/home/umbrel/nginx/www"
"deploy-local": "vue-cli-service build --mode production && rsync -aP --delete dist/ umbrel@umbrel.local:/home/umbrel/nginx/www"
},
"dependencies": {
"animate.css": "^3.7.2",
@ -62,4 +59,4 @@
"> 1%",
"last 2 versions"
]
}
}
Loading…
Cancel
Save