Saut de ligne #23
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 π | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Setup Python π | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies π§° | |
run: python -m pip install markdown_spa | |
- name: Generate HTML π | |
run: python -m markdown_spa build | |
env: | |
REPO: ${{ github.repository }} | |
- name: Setup Pages βοΈ | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact π€ | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './generated' | |
- name: Deploy to GitHub Pages π | |
id: deployment | |
uses: actions/deploy-pages@v4 |