-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 2.08 KB
/
deploy.yaml
File metadata and controls
58 lines (51 loc) · 2.08 KB
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
53
54
55
56
57
58
name: Build and Deploy
on: [push]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Checkout reveal.js🛎️
uses: actions/checkout@v3
with:
repository: hakimel/reveal.js
ref: 4.2.0
path: slides/reveal.js
- name: Checkout reveal.js menu plugin 🛎️
uses: actions/checkout@v3
with:
repository: denehyg/reveal.js-menu
ref: 2.1.0
path: slides/reveal.js/plugin/menu
- name: Checkout reveal.js progress plugin 🛎️
uses: actions/checkout@v3
with:
repository: cfrezier/reveal-progress-image-plugin
path: slides/reveal.js/plugin/progress-image
- name: Build reveal.js🛎️
run: npm ci && rm -rf node_modules\
working-directory: slides/reveal.js
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
uses: addnab/docker-run-action@v3
with:
image: asciidoctor/docker-asciidoctor:1.58
options: -v ${{ github.workspace }}:/documents
run: |
asciidoctor-revealjs /documents/slides/index.adoc
- name: Copy build to folder 📦
run: |
mkdir -p build/${{ github.ref_name }}/reveal.js/dist && \
cp -r *.html images css build/${{ github.ref_name }} && \
cp -r reveal.js/dist/* build/${{ github.ref_name }}/reveal.js/dist/ && \
cp -r reveal.js/plugin build/${{ github.ref_name }}/reveal.js/
working-directory: slides
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: slides/build # The folder the action should deploy.
branch: gh-pages
clean: false