Skip to content

Commit

Permalink
#144 Split Usage: vue <command> [options]
Browse files Browse the repository at this point in the history
Options:
  -V, --version                              output the version number
  -h, --help                                 output usage information

Commands:
  create [options] <app-name>                create a new project powered by vue-cli-service
  add [options] <plugin> [pluginOptions]     install a plugin and invoke its generator in an already created project
  invoke [options] <plugin> [pluginOptions]  invoke the generator of a plugin in an already created project
  inspect [options] [paths...]               inspect the webpack config in a project with vue-cli-service
  serve [options] [entry]                    serve a .js or .vue file in development mode with zero config
  build [options] [entry]                    build a .js or .vue file in production mode with zero config
  ui [options]                               start and open the vue-cli ui
  init [options] <template> <app-name>       generate a project from a remote template (legacy API, requires @vue/cli-init)
  config [options] [value]                   inspect and modify the config
  outdated [options]                         (experimental) check for outdated vue cli service / plugins
  upgrade [options] [plugin-name]            (experimental) upgrade vue cli service / plugins
  migrate [options] [plugin-name]            (experimental) run migrator for an already-installed cli plugin
  info                                       print debugging information about your environment

  Run vue <command> --help for detailed usage of given command. and  deploy workflows

... and make them  events
  • Loading branch information
NiloCK committed Nov 22, 2021
1 parent d980798 commit 6c84b1e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: deploy-branch
name: deploy-express
on:
pull_request:
push:
branches:
- deploy
paths:
- 'packages/express/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -25,13 +27,6 @@ jobs:
run: |
printf "${{ secrets.VUE_ENV }}" > ./packages/vue/.env.production
yarn build
# todo: make deploy of vue, express conditional on changes in their respective directories
- name: Deploy /vue
run: |
vcount=$(ssh ${{ secrets.DO_USERNAME }}@eduquilt.com ls -1v /home/skuilder/dist/vue/ | tail -n1)
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com mkdir /home/skuilder/dist/vue/$(($vcount+1))
rsync -rl ./packages/vue/dist/ ${{ secrets.DO_USERNAME }}@eduquilt.com:/home/skuilder/dist/vue/$(($vcount+1))
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com ln -sfn /home/skuilder/dist/vue/$(($vcount+1)) /home/skuilder/www
- name: Deploy /express
run: |
ecount=$(ssh ${{ secrets.DO_USERNAME }}@eduquilt.com ls -1v /home/skuilder/dist/express/ | tail -n1)
Expand All @@ -40,4 +35,4 @@ jobs:
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com ln -sfn /home/skuilder/dist/express/$(($ecount+1)) /home/skuilder/api
# restart service, loading from ~/api

# todo: toss a buildinfo.md file into the (vcount+1) folder, linking PR, listing time, logging build errors, etc
# todo: toss a buildinfo.md file into the (ecount+1) folder, linking PR, listing time, logging build errors, etc
36 changes: 36 additions & 0 deletions .github/workflows/deploy-vue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: deploy-vue
on:
push:
branches:
- deploy
paths:
- 'packages/vue/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Upload to DO
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DO_SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- run: npm install -g yarn
- run: npm install -g lerna
- run: npm install -g typescript
- run: lerna bootstrap
- name: Build
run: |
printf "${{ secrets.VUE_ENV }}" > ./packages/vue/.env.production
yarn build
- name: Deploy /vue
run: |
vcount=$(ssh ${{ secrets.DO_USERNAME }}@eduquilt.com ls -1v /home/skuilder/dist/vue/ | tail -n1)
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com mkdir /home/skuilder/dist/vue/$(($vcount+1))
rsync -rl ./packages/vue/dist/ ${{ secrets.DO_USERNAME }}@eduquilt.com:/home/skuilder/dist/vue/$(($vcount+1))
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com ln -sfn /home/skuilder/dist/vue/$(($vcount+1)) /home/skuilder/www
# todo: toss a buildinfo.md file into the (vcount+1) folder, linking PR, listing time, logging build errors, etc

0 comments on commit 6c84b1e

Please sign in to comment.