chore: modif github actions pour publish sous /slides sur les tags #2
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: reveal.js | |
- name: Build reveal.js 🛎️ | |
run: npm ci && rm -rf node_modules\ | |
working-directory: 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/index.adoc | |
- name: Copy build to folder 📦 | |
run: | | |
mkdir -p build/${{ github.ref_name }}/reveal.js/dist && \ | |
cp -r *.html images css fonts project 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/ | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
folder: build | |
branch: gh-pages | |
clean: false |