diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 440e491..4b06b77 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,10 +5,8 @@ on: - main tags: - "v*" - permissions: contents: write - jobs: deploy: runs-on: ubuntu-latest @@ -16,19 +14,15 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install uv uses: astral-sh/setup-uv@v5 with: enable-cache: true version: "latest" - - name: Set up Python run: uv python install - - name: Install dependencies run: uv sync --group docs - - name: Deploy documentation run: | git config --global user.name "github-actions[bot]" @@ -36,8 +30,9 @@ jobs: if [[ "${{ github.ref }}" == refs/tags/* ]]; then VERSION=${GITHUB_REF#refs/tags/} - uv run mike deploy --push --update-aliases $VERSION + uv run mike deploy --push --update-aliases $VERSION latest + uv run mike set-default --push latest else uv run mike deploy --push --update-aliases dev - fi - + uv run mike set-default --push dev + fi \ No newline at end of file