Skip to content

Commit 8aa0c3e

Browse files
Update Docs CI
Looks like we missed changing this when we moved the repo from dls-controls to DiamondLightSource...
1 parent 0967834 commit 8aa0c3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ jobs:
4141
run: mv build/html ".github/pages/${GITHUB_REF##*/}"
4242

4343
- name: Publish Docs to gh-pages
44-
# Only master and tags are published
45-
if: "${{ github.repository_owner == 'dls-controls' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')) }}"
44+
if: github.ref_type == 'tag' || github.ref_name == 'main'
4645
# We pin to the SHA, not the tag, for security reasons.
4746
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
48-
uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3
47+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
4948
with:
5049
github_token: ${{ secrets.GITHUB_TOKEN }}
5150
publish_dir: .github/pages

0 commit comments

Comments
 (0)