-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (43 loc) · 1.57 KB
/
build-fcs-endpoint-dev-slides-adoc.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
48
49
50
51
52
name: build <fcs-endpoint-dev-slides> adocs slides
on:
push:
branches:
- main
- dev
- fcs-endpoint-dev-slides
paths:
- 'fcs-endpoint-dev-slides/**'
- '.github/workflows/build-fcs-endpoint-dev-slides-adoc.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container: asciidoctor/docker-asciidoctor
steps:
- uses: actions/checkout@v4
- name: Setup reveal.js
run: |
git clone -b 4.1.2 --depth 1 https://github.com/hakimel/reveal.js.git
mkdir -p slides/reveal.js
mv reveal.js/dist slides/reveal.js/
mv reveal.js/plugin slides/reveal.js/
- name: Setup highlight.js for reveal.js
run: |
git clone -b 10.7.3 --depth 1 https://github.com/highlightjs/highlight.js.git
cp highlight.js/src/styles/github.css slides/reveal.js/plugin/highlight/
cp highlight.js/src/styles/idea.css slides/reveal.js/plugin/highlight/
cp highlight.js/src/styles/magula.css slides/reveal.js/plugin/highlight/
- name: Build slides
run: asciidoctor-revealjs -v -D slides fcs-endpoint-dev-slides/index.adoc
- name: Copy slide resources
run: |
mv -v fcs-endpoint-dev-slides/images slides/
mv -v fcs-endpoint-dev-slides/css slides/
- name: Store results
uses: actions/upload-artifact@v4
with:
name: fcs-endpoint-dev-slides
path: slides/*