Skip to content

Commit

Permalink
Update doc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
furkanakkurt1335 committed Feb 1, 2024
1 parent 037f020 commit 12286fb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: doc

on:
push:
branches: ["main"]
branches:
- main
- patch-workflow

# Prevent doc action on `main` to conflict with each others.
# Prevent doc action on `main` from conflicting with others.
concurrency:
group: doc-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -20,7 +22,7 @@ jobs:

steps:
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup mamba
uses: mamba-org/setup-micromamba@v1
Expand All @@ -40,8 +42,8 @@ jobs:
- name: Deploy the doc
run: |
echo "Get the gh-pages branch"
git fetch origin gh-pages
echo "Get the latest version of the doc"
git fetch origin patch-workflow:patch-workflow
echo "Build and deploy the doc on main"
mike deploy --push main
mike deploy --push patch-workflow

0 comments on commit 12286fb

Please sign in to comment.