Skip to content

Commit

Permalink
Deploy docs only from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Nov 20, 2023
1 parent 1baf905 commit cca5865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
path: ./target/doc

deploy-docs:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
Expand All @@ -57,6 +58,5 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy Docs
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit cca5865

Please sign in to comment.