mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00
chore(ci): deploy docs
This commit is contained in:
parent
0bc48e7ad0
commit
cc2178455f
2 changed files with 3 additions and 35 deletions
7
.github/workflows/azureCliDeploy.yml
vendored
7
.github/workflows/azureCliDeploy.yml
vendored
|
@ -4,16 +4,15 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- demo
|
- demo
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js 10.x
|
- name: Use Node.js 12
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '10.x'
|
node-version: '12'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: demo
|
ref: demo
|
||||||
|
|
31
.github/workflows/demoDeploy.yml
vendored
31
.github/workflows/demoDeploy.yml
vendored
|
@ -1,31 +0,0 @@
|
||||||
|
|
||||||
name: Deploy to demo
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'demo'
|
|
||||||
paths:
|
|
||||||
- 'src/**'
|
|
||||||
repository_dispatch:
|
|
||||||
types: deploy-to-demo
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Install SSH key
|
|
||||||
uses: shimataro/ssh-key-action@v2
|
|
||||||
with:
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
||||||
- name: Use Node.js 12.x
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: '12'
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: demo
|
|
||||||
- run: npm install
|
|
||||||
- run: npm run build:demo:prod
|
|
||||||
- run: rsync -r --delete-after dist/. "${{ secrets.REMOTE_URL }}":"${{ secrets.ADDRESS }}"
|
|
Loading…
Add table
Add a link
Reference in a new issue