-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/CarletonComputerScienceSo…
- Loading branch information
Showing
17 changed files
with
143 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build and Deploy PR Preview to surge | ||
# testing | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build_preview: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: '0.83.1' | ||
extended: true | ||
|
||
- name: Setup base URL env var | ||
run: | | ||
export PRNUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") | ||
echo BASEURL="https://rmoff-rmoff-blog-build_preview-pr-"$PRNUMBER".surge.sh/" >> $GITHUB_ENV | ||
- name: Report base URL env var | ||
run: echo "${{ env.BASEURL }}" | ||
|
||
- name: Build | ||
run: hugo --baseURL "${{ env.BASEURL }}" | ||
|
||
- name: Deploy to surge | ||
uses: afc163/surge-preview@v1 | ||
id: preview_step | ||
with: | ||
surge_token: "1f147e7d61488c3db6957c80ab45939f" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
dist: public | ||
failOnError: false | ||
teardown: true | ||
build: | | ||
echo Deploying to surge.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
<div class="footer"> | ||
<div class="footer-text"> | ||
<p> | ||
<b>Carleton Computer Science Society</b><br /> | ||
4135 Herzberg Laboratories<br /> | ||
1125 Colonel By Drive,<br /> | ||
Ottawa, ON K1S 5B6<br /><br /> | ||
email: <a href="mailto:[email protected]">[email protected]</a> | ||
</p> | ||
</div> | ||
<div class="footer-socials"> | ||
<a href="http://discord.carletoncomputersciencesociety.ca" | ||
><i class="fab fa-discord"></i | ||
|
@@ -16,12 +25,7 @@ | |
</div> | ||
<!--Added dynamic date updating with JavaScript--> | ||
<div class="footer-copyright"> | ||
© | ||
<script> | ||
document.write(new Date().getFullYear()); | ||
</script> | ||
<span> </span> | ||
Carleton Computer Science Society | ||
© {{ now.Year }} Carleton Computer Science Society | ||
</div> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,6 @@ | |
></a> | ||
{{ end }} | ||
</div> | ||
--> | ||
</div> | ||
--></div> | ||
</div> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.