mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 07:30:12 +01:00
Adding new deploy file
Fixing node sass version
This commit is contained in:
parent
dc6a442704
commit
859d7436a2
5 changed files with 28136 additions and 1109 deletions
43
.github/workflows/ci-cd.yml
vendored
Normal file
43
.github/workflows/ci-cd.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: Deploy Angular to EC2
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build Angular App
|
||||
run: npm run build -- --configuration=production
|
||||
|
||||
- name: Copy files to EC2 via SCP
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
host: ${{ secrets.EC2_HOST }}
|
||||
username: ${{ secrets.EC2_USER }}
|
||||
key: ${{ secrets.EC2_SSH_KEY }}
|
||||
source: "dist/**" # or dist/your-app-name/**
|
||||
target: "/var/www/angular-app"
|
||||
|
||||
- name: Trigger Accessibility Framework
|
||||
if: ${{ success() }} # or failure(), or always()
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
with:
|
||||
token: ${{ secrets.REPO_ALLY_PAT }}
|
||||
repository: punkam23/accessibility-testing-framework
|
||||
event-type: build_completed
|
||||
client-payload: '{"commit_sha": "${{ github.sha }}"}'
|
||||
58
.github/workflows/demoDeploy.yml
vendored
58
.github/workflows/demoDeploy.yml
vendored
|
|
@ -1,29 +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 }}"
|
||||
#
|
||||
#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 }}"
|
||||
|
|
|
|||
56
.github/workflows/docsDeploy.yml
vendored
56
.github/workflows/docsDeploy.yml
vendored
|
|
@ -1,28 +1,28 @@
|
|||
name: Deploy docs
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'demo'
|
||||
paths:
|
||||
- 'docs/**'
|
||||
repository_dispatch:
|
||||
types: deploy-docs
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Use Node.js 12.x
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '12'
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: demo
|
||||
- name: Deploy
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
run: |
|
||||
npm install --silent
|
||||
git config --global user.email "github-action@akveo.com"
|
||||
git config --global user.name "Github Action"
|
||||
npm run docs:gh-pages
|
||||
#name: Deploy docs
|
||||
#on:
|
||||
# push:
|
||||
# branches:
|
||||
# - 'demo'
|
||||
# paths:
|
||||
# - 'docs/**'
|
||||
# repository_dispatch:
|
||||
# types: deploy-docs
|
||||
#jobs:
|
||||
# build:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Use Node.js 12.x
|
||||
# uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: '12'
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# ref: demo
|
||||
# - name: Deploy
|
||||
# env:
|
||||
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
# run: |
|
||||
# npm install --silent
|
||||
# git config --global user.email "github-action@akveo.com"
|
||||
# git config --global user.name "Github Action"
|
||||
# npm run docs:gh-pages
|
||||
|
|
|
|||
29086
package-lock.json
generated
29086
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -62,7 +62,7 @@
|
|||
"ng2-completer": "^9.0.1",
|
||||
"ng2-smart-table": "^1.6.0",
|
||||
"ngx-echarts": "^4.2.2",
|
||||
"node-sass": "^4.14.1",
|
||||
"node-sass": "^7.0.3",
|
||||
"normalize.css": "6.0.0",
|
||||
"pace-js": "1.0.2",
|
||||
"roboto-fontface": "0.8.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue