Skip to content

Commit

Permalink
Add production build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahubers committed Oct 15, 2024
1 parent 3ef659f commit dae3592
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 to clc.cs.uiowa.edu/site/

on:
# Runs on pushes targeting the default branch
push:
branches: ["production"]

# 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

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 1 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ keywords: jekyll, jekyll-theme, academic-website, portfolio-website # add your
lang: en # the language of your site (for example: en, fr, cn, ru, etc.)
icon: λ # the emoji used as the favicon (alternatively, provide image name in /assets/img/)

url: https://clc.github.io # the base hostname & protocol for your site
baseurl: # the subpath of your site, e.g. /blog/
url: https://clc.cs.uiowa.edu # the base hostname & protocol for your site
baseurl: /site/ # the subpath of your site, e.g. /blog/
last_updated: false # set to true if you want to display last updated in the footer
impressum_path: # set to path to include impressum link in the footer, use the same path as permalink in a page, helps to conform with EU GDPR

Expand Down

0 comments on commit dae3592

Please sign in to comment.