mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +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
|
#name: Deploy to demo
|
||||||
|
#
|
||||||
on:
|
#on:
|
||||||
push:
|
# push:
|
||||||
branches:
|
# branches:
|
||||||
- 'demo'
|
# - 'demo'
|
||||||
paths:
|
# paths:
|
||||||
- 'src/**'
|
# - 'src/**'
|
||||||
repository_dispatch:
|
# repository_dispatch:
|
||||||
types: deploy-to-demo
|
# types: deploy-to-demo
|
||||||
|
#
|
||||||
jobs:
|
#jobs:
|
||||||
build:
|
# build:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Install SSH key
|
# - name: Install SSH key
|
||||||
uses: shimataro/ssh-key-action@v2
|
# uses: shimataro/ssh-key-action@v2
|
||||||
with:
|
# with:
|
||||||
key: ${{ secrets.SSH_KEY }}
|
# key: ${{ secrets.SSH_KEY }}
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
# known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||||
- name: Use Node.js 12.x
|
# - name: Use Node.js 12.x
|
||||||
uses: actions/setup-node@v1
|
# uses: actions/setup-node@v1
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
ref: demo
|
# ref: demo
|
||||||
- run: npm install
|
# - run: npm install
|
||||||
- run: npm run build:demo:prod
|
# - run: npm run build:demo:prod
|
||||||
- run: rsync -r --delete-after dist/. "${{ secrets.REMOTE_URL }}":"${{ secrets.ADDRESS }}"
|
# - 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
|
#name: Deploy docs
|
||||||
on:
|
#on:
|
||||||
push:
|
# push:
|
||||||
branches:
|
# branches:
|
||||||
- 'demo'
|
# - 'demo'
|
||||||
paths:
|
# paths:
|
||||||
- 'docs/**'
|
# - 'docs/**'
|
||||||
repository_dispatch:
|
# repository_dispatch:
|
||||||
types: deploy-docs
|
# types: deploy-docs
|
||||||
jobs:
|
#jobs:
|
||||||
build:
|
# build:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Use Node.js 12.x
|
# - name: Use Node.js 12.x
|
||||||
uses: actions/setup-node@v2
|
# uses: actions/setup-node@v2
|
||||||
with:
|
# with:
|
||||||
node-version: '12'
|
# node-version: '12'
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
ref: demo
|
# ref: demo
|
||||||
- name: Deploy
|
# - name: Deploy
|
||||||
env:
|
# env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
run: |
|
# run: |
|
||||||
npm install --silent
|
# npm install --silent
|
||||||
git config --global user.email "github-action@akveo.com"
|
# git config --global user.email "github-action@akveo.com"
|
||||||
git config --global user.name "Github Action"
|
# git config --global user.name "Github Action"
|
||||||
npm run docs:gh-pages
|
# 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-completer": "^9.0.1",
|
||||||
"ng2-smart-table": "^1.6.0",
|
"ng2-smart-table": "^1.6.0",
|
||||||
"ngx-echarts": "^4.2.2",
|
"ngx-echarts": "^4.2.2",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^7.0.3",
|
||||||
"normalize.css": "6.0.0",
|
"normalize.css": "6.0.0",
|
||||||
"pace-js": "1.0.2",
|
"pace-js": "1.0.2",
|
||||||
"roboto-fontface": "0.8.0",
|
"roboto-fontface": "0.8.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue