Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and deploy to GitHub pages #9

Merged
merged 2 commits into from
Aug 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Continuous deployment

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.1.1347

- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
# List all files containing dependencies:
key: cljdeps-${{ hashFiles('deps.edn') }}
#key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
#key: cljdeps-${{ hashFiles('project.clj') }}
#key: cljdeps-${{ hashFiles('build.boot') }}
restore-keys: cljdeps-

- run: clojure -M:build

- uses: actions/upload-artifact@v3
with:
path: |
dist

deploy:
if: github.ref_name == 'main'
needs: build
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/download-artifact@v3

- name: Fix permissions
run: |
chmod -v -R +rX "artifact/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: artifact/

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2
46 changes: 23 additions & 23 deletions resources/public/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>uPortal</title>
Expand All @@ -26,7 +26,7 @@
<div class="container">
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="index.html">
<img src="/img/logo/uportal-logo-white.png" alt="Logo">
<img src="img/logo/uportal-logo-white.png" alt="Logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="toggler-icon"></span>
Expand Down Expand Up @@ -101,14 +101,14 @@
</li>
</ul>
</div>
</nav>
</div>
</nav>
</div>
</div>

<!-- Slider -->
<div id="main-slide" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" style="background-image: url(/img/slider/banner4.jpg);">
<div class="carousel-item active" style="background-image: url(img/slider/banner4.jpg);">
<div class="carousel-caption">
<div class="container">
<div class="row">
Expand All @@ -121,12 +121,12 @@ <h1 class="wow fadeInDown heading" data-wow-delay=".4s">Designing for Student En
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
</div>

</header>

<!-- Benefits Section -->
<section id="services" class="services section-padding">
<div class="container">
Expand Down Expand Up @@ -175,7 +175,7 @@ <h3><a href="#">Widely Adopted</a></h3>
</div>
</div>
</section>

<!-- Announcement Section -->
<section class="counter-section section-padding">
<div class="container">
Expand Down Expand Up @@ -219,8 +219,8 @@ <h3><a href="#">Widely Adopted</a></h3>
</div>
</div>
</section>


<!-- About Sections -->
<section id="news" class="section-padding">
<div class="container">
Expand All @@ -231,31 +231,31 @@ <h1 class="section-title wow fadeInUp" data-wow-delay="0.2s">About uPortal</h1>
</div>
</div>
</div>

<div class="row">
<div class="col-xs-12 col-md-6 col-lg-4">
<div class="about-item">
<img class="img-fluid" src="/img/about/img1.jpg" alt="">
<img class="img-fluid" src="img/about/img1.jpg" alt="">
<div class="about-text">
<h3><a href="#">Wanna Know Our Mission?</a></h3>
<p>Working under the Apereo Foundation, our mission is to provide an engaging system to students by providing them with their information in one simple place. </p>
</div>
</div>
</div>

<div class="col-xs-12 col-md-6 col-lg-4">
<div class="about-item">
<img class="img-fluid" src="/img/about/img2.jpg" alt="">
<img class="img-fluid" src="img/about/img2.jpg" alt="">
<div class="about-text">
<h3><a href="#">What you will learn?</a></h3>
<p>Learn the uPortal code base and workshops on the latest technology: Web Components using Lit. Hear where our vision is heading for uPortal and let's talk about the roadmap.</p>
</div>
</div>
</div>

<div class="col-xs-12 col-md-6 col-lg-4">
<div class="about-item">
<img class="img-fluid" src="/img/about/img3.jpg" alt="">
<img class="img-fluid" src="img/about/img3.jpg" alt="">
<div class="about-text">
<h3><a href="#">What are the benefits?</a></h3>
<p>This is a great opportunity to meet peers and learn to become a contributor if you're starting out. If you're currently a contributor, you can help steer the future direction of the project.</p>
Expand All @@ -265,7 +265,7 @@ <h3><a href="#">What are the benefits?</a></h3>
</div>
</div>
</section>

<footer class="footer-area section-padding">
<div class="container">
<div class="row">
Expand All @@ -291,7 +291,7 @@ <h3 class="widget-title">FOLLOW US ON</h3>
</div>
</div>
</footer>

<div id="copyright">
<div class="container">
<div class="row">
Expand All @@ -304,6 +304,6 @@ <h3 class="widget-title">FOLLOW US ON</h3>
</div>
</div>
</div>

</body>
</html>