Skip to content

Create devops-101-fr.md #32

Create devops-101-fr.md

Create devops-101-fr.md #32

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: ./scripts/build_presentations.sh
- 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