Skip to content

Commit e7cc111

Browse files
committed
fix: deploy
1 parent c9e9d0f commit e7cc111

File tree

4 files changed

+58
-8
lines changed

4 files changed

+58
-8
lines changed

.github/workflows/jekyll-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Deploy Jekyll Site
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: '3.1'
22+
bundler-cache: true
23+
24+
- name: Install dependencies
25+
run: bundle install
26+
27+
- name: Build site
28+
run: bundle exec jekyll build
29+
30+
- name: Deploy to GitHub Pages
31+
if: github.event_name == 'push'
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./_site
36+
publish_branch: gh-pages

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.1.2

Gemfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
source "https://rubygems.org"
22

3-
gem "jekyll", "~> 4.2.0"
4-
gem "minima", "~> 2.5.1"
3+
gem "github-pages", group: :jekyll_plugins
4+
gem "webrick", "~> 1.7"
55

66
group :jekyll_plugins do
7-
gem "jekyll-feed", "~> 0.15.1"
8-
gem "jekyll-seo-tag", "~> 2.7.1"
9-
gem "jekyll-sitemap", "~> 1.4.0"
7+
gem "jekyll-feed"
8+
gem "jekyll-seo-tag"
9+
gem "jekyll-sitemap"
1010
end
1111

12-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
13-
# and associated library.
12+
# Windows and JRuby does not include zoneinfo files
1413
platforms :mingw, :x64_mingw, :mswin, :jruby do
15-
gem "tzinfo", "~> 1.2"
14+
gem "tzinfo", ">= 1", "< 3"
1615
gem "tzinfo-data"
1716
end
1817

_config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,25 @@ author: Awar
99
# Build settings
1010
markdown: kramdown
1111
theme: minima
12+
future: false # Don't publish posts with a future date
13+
1214
plugins:
1315
- jekyll-feed
1416
- jekyll-seo-tag
1517
- jekyll-sitemap
1618

19+
# Exclude files from processing
20+
exclude:
21+
- .sass-cache/
22+
- .jekyll-cache/
23+
- gemfiles/
24+
- Gemfile
25+
- Gemfile.lock
26+
- node_modules/
27+
- vendor/
28+
- .github/
29+
- README.md
30+
1731
# Date format
1832
date_format: "%d/%m/%Y"
1933

0 commit comments

Comments
 (0)