-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: modif github actions pour publish sous /slides sur les tags
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
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 |