Skip to content

Commit

Permalink
Ajout workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSpaar committed Jan 26, 2024
1 parent d573597 commit 9b1d6c9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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/[email protected]
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@v3
- name: Upload artifact πŸ“€
uses: actions/upload-pages-artifact@v2
with:
path: './generated'
- name: Deploy to GitHub Pages 🌍
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 9b1d6c9

Please sign in to comment.