From 1afd7cb934cebe31e5730a20fef503ea680dd8a5 Mon Sep 17 00:00:00 2001 From: EbonyGunwhy <100941618+EbonyGunwhy@users.noreply.github.com> Date: Thu, 6 Jul 2023 09:15:57 +0100 Subject: [PATCH] fix: change gh-pages action to publish on push to main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The documentation action currently only publishes on pushes to ‘development’. This pull request will instead allow documentation to be published whenever a push to ‘main’ occurs. --- .github/workflows/documentation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index f54abd0..2f87ef0 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -35,7 +35,7 @@ jobs: - name: Publish to gh-pages uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/development' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: publish_branch: gh-pages # default: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }}