Skip to content

Commit

Permalink
fix: Deployment document on push main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Oct 31, 2024
1 parent 4445b01 commit b82fefd
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"_copy_without_render": [
"Taskfile.yaml",
"**/Taskfile.yaml",
".github/workflows/deploy-docs.yml",
".github/workflows/release.yml"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'Deploy document'

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 b82fefd

Please sign in to comment.