From c6d6c2f9550f520b4bc2ec0b07a65a8c376032a2 Mon Sep 17 00:00:00 2001 From: jonathanmtran Date: Sat, 12 Aug 2023 01:47:46 +0000 Subject: [PATCH 1/2] ci: added workflow to build and deploy website to GitHub Pages --- .github/workflows/continuous-deployment.yml | 77 +++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/continuous-deployment.yml diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml new file mode 100644 index 0000000..5e018d8 --- /dev/null +++ b/.github/workflows/continuous-deployment.yml @@ -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/setup-clojure@11.0 + 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 From e43d9e356266495f96b1a3db851412b1be3300ca Mon Sep 17 00:00:00 2001 From: jonathanmtran Date: Sat, 12 Aug 2023 01:52:49 +0000 Subject: [PATCH 2/2] fix: adjusted img paths to be relative --- resources/public/index.html | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/resources/public/index.html b/resources/public/index.html index 1c78cf8..341cc50 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -1,7 +1,7 @@ - + uPortal @@ -26,7 +26,7 @@
- - + + - + - - - + + + +
@@ -175,7 +175,7 @@

Widely Adopted

- +
@@ -219,8 +219,8 @@

Widely Adopted

- - + +
@@ -231,31 +231,31 @@

About uPortal

- +
- +

Wanna Know Our Mission?

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.

- +
- +

What you will learn?

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.

- +
- +

What are the benefits?

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.

@@ -265,7 +265,7 @@

What are the benefits?

- +
@@ -291,7 +291,7 @@

FOLLOW US ON

- + - +