Skip to content

Commit

Permalink
Upload mkdocs builds as artifacts
Browse files Browse the repository at this point in the history
if not run on main branch (mostly for PR review)
  • Loading branch information
2bndy5 authored Feb 28, 2024
1 parent e0e9322 commit a498a39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
- name: check mkdocs build
if: github.ref != 'refs/heads/main'
run: mkdocs build
- name: Upload docs build as artifact
if: github.ref != 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}_docs
path: ${{ github.workspace }}/site
- name: Build docs and deploy to gh-pages
if: github.ref == 'refs/heads/main'
run: |
Expand Down

0 comments on commit a498a39

Please sign in to comment.