Skip to content

Commit

Permalink
Merge pull request #116 from vintasoftware/feat/better-docs
Browse files Browse the repository at this point in the history
Fix .github/workflows/docs-update.yml
  • Loading branch information
fjsj authored Jun 21, 2024
2 parents fdf2220 + 792f855 commit 25f66c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
timeout-minutes: 30

steps:
- name: checkout docs-site
- name: checkout gh-pages
uses: actions/checkout@v4
with:
ref: docs-site
ref: gh-pages

- name: checkout current branch
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- run: poetry run mike deploy -b docs-site dev --push
- run: poetry run mike deploy -b gh-pages dev --push
if: "github.ref == 'refs/heads/main'"

- if: "github.ref == 'refs/heads/docs-update' || startsWith(github.ref, 'refs/tags/')"
Expand All @@ -61,5 +61,5 @@ jobs:
version_file_path: 'django_ai_assistant/__init__.py'
skip_env_check: true

- run: poetry run mike deploy -b docs-site ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --push
- run: poetry run mike deploy -b gh-pages ${{ steps.check-version.outputs.VERSION_MAJOR_MINOR }} latest --update-aliases --push
if: "(github.ref == 'refs/heads/docs-update' || startsWith(github.ref, 'refs/tags/')) && !fromJSON(steps.check-version.outputs.IS_PRERELEASE)"

0 comments on commit 25f66c2

Please sign in to comment.