-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 954 Bytes
/
main.yml
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
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build_and_deploy:
name: Build and Deploy Jekyll Site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: Install Python Dependencies
run: pip install -r requirements.txt
- name: Build Opengraph Images
run: python _scripts/generate-opengraph.py
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build Jekyll Site
run: bundle exec jekyll build
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 57dee0c3071a38e49addeeedaebbb4ea
projectName: sp301415-blog
directory: _site