reelase: Version 0.2.0 #9
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: 'Deploy document' | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: 'Configure dependencies' | |
run: | | |
uv sync --frozen --all-extras | |
- name: 'Build document' | |
run: | | |
task docs:build | |
env: | |
GITHUB_PAGES: 1 | |
- name: 'Upload artifact' | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs/_build/mini18n-dirhtml | |
- name: 'Deploy to GitHub Pages' | |
id: deployment | |
uses: actions/deploy-pages@v4 |