-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 883 Bytes
/
Copy pathdeploy.yml
File metadata and controls
39 lines (32 loc) · 883 Bytes
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
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup git user/email
run: |
git config --global user.name github-actions
git config --global user.email github-actions@github.com
- name: Checkout
uses: actions/checkout@v7
- name: Checkout
uses: actions/checkout@v7
with:
ref: public
path: _site
- name: Setup Ruby
uses: ruby/setup-ruby@v1.322.0
# Runs a single command using the runners shell
- name: Run Jekyll build and deploy
run: |
COMMIT=`git rev-parse --short HEAD`
bundle install
bundle exec jekyll build
cd _site
touch .nojekyll
git add -A
git commit -m "Generated site at $COMMIT"
git push origin public