Skip to content

Improve codebase for export in PDF #27

Improve codebase for export in PDF

Improve codebase for export in PDF #27

Workflow file for this run

# purpose: continuously deploy the presentations
# actions:
# - https://github.com/marketplace/actions/checkout
# - https://github.com/actions/setup-node
# - https://github.com/actions/configure-pages
# - https://github.com/actions/upload-pages-artifact
# - https://github.com/actions/deploy-pages
# images:
# - https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
# references:
# - https://sli.dev/guide/hosting.html#github-pages
name: Deploy
on:
push:
branches: [ "main" ]
workflow_dispatch: {}
concurrency:
group: "pages"
cancel-in-progress: true
env:
SITE_BASE: presentations
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Instal Node.js (LTS)
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm install
- name: Build web content
run: |
mkdir dist
cp -r assets dist/assets
npm run build src/index.md -- --base presentations -o ../dist
npm run build src/demo.md -- --base presentations/demo -o ../dist/demo
npm run build src/202402_securite_conteneur.md -- --base presentations/meetup-secu-conteneur-202402 -o ../dist/meetup-secu-conteneur-202402
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4