Skip to content

Commit

Permalink
Updated build for hosting
Browse files Browse the repository at this point in the history
- Workflow files
- Command scripts
- Introduced a build folder
  • Loading branch information
edwinmambo committed Dec 28, 2023
1 parent a2f4df0 commit 32f8b6b
Show file tree
Hide file tree
Showing 36 changed files with 366 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/deploycPanel.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Publish website to cPanel
on:
push:
branches:
- gh-pages
name: Deploy to cPanel

on: page_build

jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: FTP-Deploy-Action
- name: Checkout
uses: actions/checkout@v2

- name: Deploy to cPanel
uses: SamKirkland/[email protected]
with:
ftp-server: ${{ secrets.FTP_DEV_SERVER }}
ftp-username: ${{ secrets.FTP_DEV_USERNAME }}
ftp-password: ${{ secrets.FTP_DEV_PASSWORD }}
server: ${{ secrets.FTP_DEV_SERVER }}
username: ${{ secrets.FTP_DEV_USERNAME }}
password: ${{ secrets.FTP_DEV_PASSWORD }}
local-dir: docs/ekenyoro-frontend/
server-dir: public_html/
321 changes: 321 additions & 0 deletions docs/3rdpartylicenses.txt

Large diffs are not rendered by default.

Binary file added docs/assets/img/brand-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/brand-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/brand-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/hero-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/hero-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/hero-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/hero-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/logo-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/logo-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/logo-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/logo-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/main-1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/main-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/main-2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/main-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/main-3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/main-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/main-4.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/prog-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/prog-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/program-1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/program-2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/program-3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/bootstrap-icons.02685dabe0850e40.woff2
Binary file not shown.
Binary file added docs/bootstrap-icons.8463cb1e163733b5.woff
Binary file not shown.
Binary file added docs/favicon.ico
Binary file not shown.
16 changes: 16 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>Ekenyoro</title>
<base href="/ekenyoro-frontend/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="styles.b5dbbc93a75029d2.css"></head>

<body>
<app-root></app-root>
<script src="runtime.131c385592ac2082.js" type="module"></script><script src="polyfills.752197c89f767cb7.js" type="module"></script><script src="scripts.4e6d6f582996c29b.js" defer></script><script src="main.c9eac6532367f9a5.js" type="module"></script></body>

</html>
1 change: 1 addition & 0 deletions docs/main.c9eac6532367f9a5.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/polyfills.752197c89f767cb7.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/runtime.131c385592ac2082.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/scripts.4e6d6f582996c29b.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/styles.b5dbbc93a75029d2.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:docs": "ng build --base-href=/ekenyoro-frontend/ --output-path=docs",
"deploy:gh": "ng deploy --base-href=/ekenyoro-frontend/",
"build-and-deploy": "yarn build:docs && yarn deploy:gh --message=\"$npm_config_message\"",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
Expand Down

0 comments on commit 32f8b6b

Please sign in to comment.