-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 986 Bytes
/
doc.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
name: CI
on: [push]
jobs:
build_docs:
runs-on: self-ruby
name: Build, Install, Package slides
# if: "!contains(github.event.head_commit.message, 'docs skip')"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: 'hakimel/reveal.js.git'
fetch-depth: 1
path: 'reveal.js'
ref: '3.9.2'
- name: Install credentials
run: echo https://$GITHUB_OAUTH:@github.com > $HOME/.git-credentials
env:
GITHUB_OAUTH: ${{ secrets.DOCS_GITHUB_KEY }}
- name: Build
run: |
bundle config set --local path 'vendor/bundle'
bundle install
./render bundle
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
# target-folder: ${GITHUB_REF##*/}
folder: build # The folder the action should deploy.