Fixed error querying current a tag #46
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- 'doc/**' | |
- 'CNAME' | |
- '.github/workflows/static.yml' | |
- 'src/markdown_spa/generator/**' | |
- 'src/markdown_spa/extensions/SASS/**' | |
- 'src/markdown_spa/extensions/Sitemap/**' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
name: Deploy π | |
runs-on: ubuntu-latest | |
environment: | |
name: gh-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
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 -e . | |
- name: Generate HTML π | |
run: python -m markdown_spa build doc | |
env: | |
REPO: ${{ github.repository }} | |
- name: Setup Pages βοΈ | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact π€ | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './doc/generated' | |
- name: Deploy to GitHub Pages π | |
id: deployment | |
uses: actions/deploy-pages@v4 |