Skip to content

Instantly share code, notes, and snippets.

@educkf
educkf / gist:6e47da30b5d3ba4e5064cc6ac1fdbf67
Last active Dec 3, 2020
Draft for Github action to deploy stuff to Digital Ocean droplets
View gist:6e47da30b5d3ba4e5064cc6ac1fdbf67
name: Deploy to D.O. subfolder project
on:
push:
branches:
- staging
jobs:
build-deploy:
runs-on: ubuntu-latest
View snippet of package.json scripts
"scripts": {
"serve": "vue-cli-service serve",
"build:admin": "rimraf vue.config.js && copy vue.configAdmin.js vue.config.js && vue-cli-service build --dest dist/admin src/admin/main.js && rimraf vue.config.js && copy vue.configDefault.js vue.config.js",
"build:client": "rimraf vue.config.js && copy vue.configClient.js vue.config.js && vue-cli-service build --dest dist/client src/client/main.js && rimraf vue.config.js && copy vue.configDefault.js vue.config.js",
"lint": "vue-cli-service lint"
},