mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
chore: deploy demo action
* create deploy demo script * action trigger guide added
This commit is contained in:
parent
9eaf0bb005
commit
7b84933f7c
2 changed files with 36 additions and 0 deletions
24
.github/workflows/demoDeploy.yml
vendored
Normal file
24
.github/workflows/demoDeploy.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
name: Deploy to demo
|
||||
|
||||
on:
|
||||
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@v1
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: demo
|
||||
- run: npm install
|
||||
- run: npm run build:prod
|
||||
- run: rsync -r --delete-after dist/. "${{ secrets.REMOTE_URL }}":"${{ secrets.ADDRESS }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue