-
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, and fix styling issues
- Loading branch information
1 parent
9b8bab1
commit da7ae5b
Showing
22 changed files
with
780 additions
and
418 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,15 +4,14 @@ | |
# 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: | ||
|
@@ -23,7 +22,7 @@ on: | |
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: write | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
|
@@ -46,11 +45,17 @@ 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 }}" | ||
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: | ||
|
@@ -60,28 +65,28 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "main" | ||
- name: Copy _site contents | ||
- name: Checkout Repository | ||
run: | | ||
cp -r _site/ Gemfile _config.yml /tmp/ | ||
git checkout -b _site | ||
- name: Configure Git | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: _site | ||
|
||
- name: Deploy to Specific Branch | ||
run: | | ||
# Clear out existing contents | ||
rm -rf * | ||
cp -r /tmp/_site/* /tmp/Gemfile /tmp/_config.yml ./ | ||
# Copy _site contents to root | ||
cp -r _site/* . | ||
# Add all files | ||
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" | ||
# Commit and push | ||
git commit -m "Deploy Jekyll site to '_site' branch" | ||
git push origin HEAD:_site |
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.