Update site header styles and add dynamic visibility for sticky header #68
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 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 "_site" branch on GitHub Pages | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main"] | |
paths: | |
- "_site/**" # Runs only when there are changes in the 'site' directory | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "_site/**" | |
# 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: write | |
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 main branch | |
uses: actions/checkout@v4 | |
with: | |
ref: "main" | |
- name: Cache Ruby Gems | |
uses: actions/cache@v3 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}-cache-v1 | |
restore-keys: | | |
${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}-cache-v1 | |
${{ runner.os }}-gems- | |
# Deployment job | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout main branch | |
uses: actions/checkout@v4 | |
with: | |
ref: "main" | |
- name: Copy _site contents | |
run: | | |
cp -r _site/ Gemfile _config.yml /tmp/ | |
git checkout -b _site | |
rm -rf * | |
cp -r /tmp/_site/* /tmp/Gemfile /tmp/_config.yml ./ | |
git add --all | |
git config user.name github-actions | |
git config user.email [email protected] | |
git commit -m "update _site content" | |
git push --force origin _site | |
- name: Deploy to GitHub Pages | |
uses: jeffreytse/[email protected] | |
with: | |
provider: "github" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository: "" | |
branch: "_site" | |
jekyll_src: "./" | |
jekyll_cfg: "_config.yml" | |
jekyll_baseurl: "/2nd-Minima" |