Skip to content

Commit

Permalink
(workflow): when pushing to beta or stable, we shouldnt check out the…
Browse files Browse the repository at this point in the history
… branch to avoid error
  • Loading branch information
benjaminbollen committed Nov 19, 2024
1 parent 2d39f60 commit 3c64058
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,21 @@ jobs:
- name: Build Beta Documentation
run: |
git fetch --depth 1 origin beta:beta
git checkout beta
if [[ $GITHUB_REF != "refs/heads/beta" ]]; then
git fetch --depth 1 origin beta:beta
git checkout beta
fi
cd docs/
mkdocs build
mkdir -p ../gh-pages/beta
cp -R site/* ../gh-pages/beta/
- name: Build Candidate Stable Documentation
run: |
git fetch --depth 1 origin candidate/stable:candidate/stable
git checkout candidate/stable
if [[ $GITHUB_REF != "refs/heads/candidate/stable" ]]; then
git fetch --depth 1 origin candidate/stable:candidate/stable
git checkout candidate/stable
fi
cd docs/
mkdocs build
mkdir -p ../gh-pages/candidate-stable
Expand Down

0 comments on commit 3c64058

Please sign in to comment.