-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.06 KB
/
github-pages.yml
File metadata and controls
44 lines (40 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Source: https://mzrn.sh/2023/10/26/how-to-use-tailwind-css-with-jekyll-on-github-pages/
name: Build and deploy this site to GitHub Pages
on:
push:
branches:
- master
env:
JEKYLL_ENV: production
JEKYLL_LOG_LEVEL: info
NODE_ENV: production
TZ: America/Caracas
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y $(cat .apt)
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Node dependencies
run: npm install
- name: Build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
custom_opts: "--verbose"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site