Skip to content

Commit

Permalink
init the page
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoon2wong committed Aug 21, 2023
1 parent f21712a commit 93d9dc9
Show file tree
Hide file tree
Showing 13 changed files with 859 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/jekyll_submodule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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: ["page"]

# 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
with:
submodules: recursive

- name: Copy softlink files
run: |
mv ./_layouts ./_layouts_backup
mv ./_includes ./_includes_backup
mv ./assets ./assets_backup
mkdir ./assets
mkdir ./_includes
mkdir ./_layouts
cp -r ./assets_backup/* ./assets/
cp -r ./_includes_backup/* ./_includes/
cp -r ./_layouts_backup/* ./_layouts/
ls
- name: Build the site in the jekyll/builder container
uses: actions/jekyll-build-pages@v1
with:
source: .
destination: ./_site
future: false
verbose: true
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1

# 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@v2
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# project
_site
.sass-cache
.vagrant

# general
.DS_Store
Thumbs.db
ehthumbs.db

Gemfile.lock

beautiful-jekyll-theme-*.gem

run.sh
41 changes: 41 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"files.exclude": {
"**/_data": true,
"**/_site": true,
// "**/_includes": true,
// "**/_layouts": true,

// "**/.github": true,

// "**/assets/css": true,
// "**/assets/js": true,

"**/docs": true,

"**/.gitattributes": true,
"**/.gitignore": true,
"**/Gemfile": true,
"**/*.gemspec": true,

"**/feed.xml": true,
"**/staticman.yml": true,

"**/tags.html": true,
"**/404.html": true,

},
"grammarly.files.include": [
"**/readme.md",
"**/README.md",
"**/*.txt",
],
"editor.unicodeHighlight.nonBasicASCII": true,
"colorize.include": [
"**/*.yml",
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less",
"**/*.styl"
],
}
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec


gem "webrick", "~> 1.8"
Loading

0 comments on commit 93d9dc9

Please sign in to comment.