-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.16 KB
/
jekyll.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
41
42
43
44
45
46
47
name: Build and Deploy Jekyll Site
on:
push:
branches:
- main # Set to your default branch
pull_request:
branches:
- main # Set to your default branch
workflow_dispatch: # Allows manual triggering of the workflow
schedule:
- cron: '30 */2 * * *' # Runs every 2 hours
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Set to the Ruby version you need
- name: Build Jekyll site
run: |
gem install bundler
bundle install
bundle exec jekyll build
- name: Clone Links repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/kellan/blogmarks.git blogmarks
- name: Copy _site directory from Links repository
run: |
rsync -av blogmarks/_site/ _site/links/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
cname: laughingmeme.org