Skip to content

Commit

Permalink
Merge pull request #109 from aboutcircles/20241118-docs-update-beta
Browse files Browse the repository at this point in the history
(workflow): when pushing to beta or stable, we shouldnt check out the…
  • Loading branch information
roleengineer authored Nov 19, 2024
2 parents 13a2306 + 3c64058 commit 8444981
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 8444981

Please sign in to comment.