-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.04 KB
/
slides.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
name: Deploy Slides
on:
push:
branches:
- main
pull_request:
concurrency:
cancel-in-progress: true
group: >-
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
deploy-slides:
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/slides/Gemfile
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Install and Build
working-directory: ./slides
run: >-
JEKYLL_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
JEKYLL_ENV=production
bundle exec jekyll build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./slides/_site
publish_branch: 7-slides
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com