Skip to content

Commit

Permalink
Add GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
Querela committed Mar 11, 2024
1 parent e558a8b commit 0754a7c
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build-fcs-endpoint-dev-slides-adoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v3

- 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 index.adoc

- name: Copy slide resources
run: |
mv -v images slides/
mv -v css slides/
- name: Store results
uses: actions/upload-artifact@v3
with:
name: fcs-endpoint-dev-slides
path: slides/*

0 comments on commit 0754a7c

Please sign in to comment.