Modificartion thème et feedback pour BreizhCamp #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy tag release | |
on: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy: | |
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: 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.65 | |
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/[email protected] | |
with: | |
folder: slides/build | |
branch: gh-pages | |
clean: false |