Skip to content

Commit

Permalink
ci: Define workflow to only build document
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Oct 30, 2024
1 parent 80c0a16 commit 72a3452
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'Deploy doc'

on:
push:
branches:
- 'main'
workflow_dispatch:

jobs:
deploy-doc:
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: astral-sh/setup-uv@v2
- uses: arduino/setup-task@v2
- name: Build document
run: |
task setup docs:build
- 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

0 comments on commit 72a3452

Please sign in to comment.