Maj markdown_spa 1.4.2 #4
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/[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 |