Compare commits
13 Commits
3f0a985379
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e48db0c12b | |||
| 60ba39d8c4 | |||
| ff5ec0ba46 | |||
| 1eedd58ed4 | |||
| 62480da4f2 | |||
| d91b449bb5 | |||
| 7eb683d686 | |||
| 77fa1b6b1f | |||
| ee0b6adfec | |||
| 352ee30ecd | |||
| 02ffbd0ee8 | |||
| fec6aa7a1c | |||
| 499a1127ff |
@@ -0,0 +1,70 @@
|
|||||||
|
name: Build Jekyll site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: pages
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ruby:3.1
|
||||||
|
env:
|
||||||
|
JEKYLL_ENV: production
|
||||||
|
steps:
|
||||||
|
- name: Install Node and LaTeX
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
nodejs latexmk texlive-latex-recommended texlive-latex-extra \
|
||||||
|
texlive-fonts-recommended texlive-fonts-extra texlive-xetex \
|
||||||
|
texlive-plain-generic
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build CV PDF from LaTeX
|
||||||
|
working-directory: cv
|
||||||
|
run: latexmk -pdf -interaction=nonstopmode -halt-on-error WJ-CV.tex
|
||||||
|
|
||||||
|
- name: Install gems
|
||||||
|
run: bundle install --jobs 4
|
||||||
|
|
||||||
|
- name: Build with Jekyll
|
||||||
|
run: bundle exec jekyll build
|
||||||
|
|
||||||
|
- name: Upload site artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: site
|
||||||
|
path: _site
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: debian:stable-slim
|
||||||
|
steps:
|
||||||
|
- name: Install tools
|
||||||
|
run: apt-get update && apt-get install -y --no-install-recommends rsync nodejs openssh-client ca-certificates
|
||||||
|
|
||||||
|
- name: Download site
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: site
|
||||||
|
path: _site
|
||||||
|
|
||||||
|
- name: Set up SSH
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
- name: Rsync to VPS
|
||||||
|
run: rsync -avz _site/ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:/
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
# This workflow uses actions that are not certified by GitHub.
|
|
||||||
# They are provided by a third-party and are governed by
|
|
||||||
# separate terms of service, privacy policy, and support
|
|
||||||
# documentation.
|
|
||||||
|
|
||||||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
|
|
||||||
name: Deploy Jekyll site to Pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
# Runs on pushes targeting the default branch
|
|
||||||
push:
|
|
||||||
branches: ["main"]
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
||||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# Build job
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Build CV PDF from LaTeX
|
|
||||||
uses: xu-cheng/latex-action@v3
|
|
||||||
with:
|
|
||||||
working_directory: cv
|
|
||||||
root_file: WJ-CV.tex
|
|
||||||
- name: Setup Ruby
|
|
||||||
uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.127.0
|
|
||||||
with:
|
|
||||||
ruby-version: '3.1' # Not needed with a .ruby-version file
|
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
||||||
cache-version: 0 # Increment this number if you need to re-download cached gems
|
|
||||||
- name: Setup Pages
|
|
||||||
id: pages
|
|
||||||
uses: actions/configure-pages@v3
|
|
||||||
- name: Build with Jekyll
|
|
||||||
# Outputs to the './_site' directory by default
|
|
||||||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
|
||||||
env:
|
|
||||||
JEKYLL_ENV: production
|
|
||||||
- name: Upload artifact
|
|
||||||
# Automatically uploads an artifact from the './_site' directory by default
|
|
||||||
uses: actions/upload-pages-artifact@v3
|
|
||||||
|
|
||||||
# Deployment job
|
|
||||||
deploy:
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- name: Deploy to GitHub Pages
|
|
||||||
id: deployment
|
|
||||||
uses: actions/deploy-pages@v4
|
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
# Will's Portfolio
|
||||||
|
Deployed to: https://jeynes.uk
|
||||||
|
|
||||||
|
Jekyll project to build a static site
|
||||||
|
|
||||||
|
[cv/](cv/) contains a latex project to build my cv from source
|
||||||
|
|
||||||
|
# Attributions
|
||||||
|
|
||||||
|
## Site
|
||||||
|
|
||||||
|
**Based on ShefGameDevSoc Website By Will Jeynes**
|
||||||
|
|
||||||
|
https://github.com/ShefGameDevSoc/ShefGameDevSoc.github.io/
|
||||||
|
|
||||||
|
**Which is in turn based on Basically Basic Jekyll Theme 1.4.5**
|
||||||
|
|
||||||
|
Copyright 2017-2018 Michael Rose - mademistakes.com | @mmistakes
|
||||||
|
|
||||||
|
Free for personal and commercial use under the MIT license
|
||||||
|
https://github.com/mmistakes/jekyll-theme-basically-basic/blob/master/LICENSE
|
||||||
|
|
||||||
|
## CV LaTeX
|
||||||
|
```
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
% Medium Length Professional CV
|
||||||
|
% LaTeX Template
|
||||||
|
% Version 3.0 (December 17, 2022)
|
||||||
|
%
|
||||||
|
% This template originates from:
|
||||||
|
% https://www.LaTeXTemplates.com
|
||||||
|
%
|
||||||
|
% Author:
|
||||||
|
% Vel (vel@latextemplates.com)
|
||||||
|
%
|
||||||
|
% Original author:
|
||||||
|
% Trey Hunner (http://www.treyhunner.com/)
|
||||||
|
%
|
||||||
|
% License:
|
||||||
|
% CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)
|
||||||
|
%
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
```
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Will's Portfolio by Will Jeynes (https://jeynes.uk)
|
Will's Portfolio by Will Jeynes (https://jeynes.uk)
|
||||||
Free for personal and commercial use
|
Free for personal and commercial use
|
||||||
https://github.com/WillJeynes/WillJeynes.github.io
|
https://git.host.jeynes.uk/jill/jeynes.uk
|
||||||
|
|
||||||
Based on
|
Based on
|
||||||
ShefGameDevSoc Website
|
ShefGameDevSoc Website
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ items:
|
|||||||
- "This Website":
|
- "This Website":
|
||||||
content: |
|
content: |
|
||||||
This website is a short collection of projects and work experience from my time in education and work. More information can be found on [my Linkedin](https://www.linkedin.com/in/william-jeynes/), [my Github](https://github.com/WillJeynes) or (more recently) [my Gitea Server](https://git.host.jeynes.uk/explore/repos)
|
This website is a short collection of projects and work experience from my time in education and work. More information can be found on [my Linkedin](https://www.linkedin.com/in/william-jeynes/), [my Github](https://github.com/WillJeynes) or (more recently) [my Gitea Server](https://git.host.jeynes.uk/explore/repos)
|
||||||
|
- "Note":
|
||||||
|
content: |
|
||||||
|
Migrated to host.jeynes.uk on 07/11/26 ([website source](https://git.host.jeynes.uk/jill/jeynes.uk)).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user