mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-05 00:58:50 +01:00
chore: deploy actions (#5690)
Co-authored-by: Maksim Karatkevich <m.karatkevich@akveo.com>
This commit is contained in:
parent
e02e2bd937
commit
2f9ce78488
3 changed files with 71 additions and 0 deletions
29
.github/workflows/demoDeploy.yml
vendored
Normal file
29
.github/workflows/demoDeploy.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
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@v1
|
||||
- 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