Skip to content

Commit

Permalink
update documentation workflow to use main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanneBogart committed Dec 2, 2024
1 parent 1459b42 commit ec938e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -18,8 +20,8 @@ jobs:
sphinx-build docs _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/skycat_doc2' }}
if: ${{ github.ref == 'refs/heads/skycat_doc2' }}
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' }}
# if: ${{ github.ref == 'refs/heads/skycat_doc2' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ec938e6

Please sign in to comment.