-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new post, update site header style, and fix links in HTML files
- Loading branch information
1 parent
9b8bab1
commit 5b5b212
Showing
22 changed files
with
775 additions
and
415 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 |
---|---|---|
|
@@ -4,26 +4,25 @@ | |
# documentation. | ||
|
||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
|
||
name: Deploy Jekyll site to "_site" branch on GitHub Pages | ||
name: Deploy Jekyll site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "_site/**" # Runs only when there are changes in the 'site' directory | ||
paths-ignore: | ||
- "_site/**" | ||
pull_request: | ||
branches: ["main"] | ||
paths: | ||
paths-ignore: | ||
- "_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 | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
|
@@ -46,6 +45,9 @@ jobs: | |
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@v4 | ||
- name: Build with Jekyll | ||
# Outputs to the './_site' directory by default | ||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" | ||
|
@@ -60,28 +62,29 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout main branch | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "main" | ||
- name: Copy _site contents | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Deploy to '_site' Branch | ||
run: | | ||
cp -r _site/ Gemfile _config.yml /tmp/ | ||
git checkout -b _site | ||
# Clear out existing contents | ||
rm -rf * | ||
# Copy _site contents to root | ||
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 | ||
# Add all files | ||
git add --all | ||
# Commit and push | ||
git commit -m "Deploy Jekyll site to '_site' branch" | ||
git push origin HEAD:_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" | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
layout: post | ||
title: My first post | ||
tags: WoW go | ||
toc: true | ||
description: Haha! This is my first post. | ||
thumbnail: https://deep0thinking.com/wp-content/uploads/2024/01/my-first-post.jpg | ||
--- | ||
|
||
### |
Oops, something went wrong.