29 lines
610 B
YAML
29 lines
610 B
YAML
name: deploy
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
deploy-docs:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: ./.github/actions/setup-pixi
|
|
with:
|
|
environments: node
|
|
|
|
- name: Build docs
|
|
run: pixi run build-docs
|
|
|
|
- name: Deploy to GitHub Pages
|
|
if: github.ref == 'refs/heads/main'
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: docs/.vitepress/dist
|
|
cname: clice.io
|