Skip to content

Commit

Permalink
Work on fork
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Jan 24, 2025
1 parent 12d8cdb commit 9855204
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ on:
branches:
- '*'

pull_request_target:
branches:
- master
# pull_request_target:
# branches:
# - master


types:
- opened
- reopened
- synchronize
- labeled # requires the `build-docs` label
- ready_for_review
# types:
# - opened
# - reopened
# - synchronize
# - labeled # requires the `build-docs` label
# - ready_for_review

workflow_dispatch: # manual trigger

Expand All @@ -38,7 +39,7 @@ defaults:
jobs:
check-for-changes:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
# if: ${{ !github.event.pull_request.draft }} # Commented out to allow running on forks
outputs:
trigger-check-outcome: ${{ steps.trigger_check.outcome }}
docs-check-outcome: ${{ steps.docs_check.outcome }}
Expand Down Expand Up @@ -77,8 +78,10 @@ jobs:

build-docs:
runs-on: ubuntu-latest
# needs: check-for-changes
# if: needs.check-for-changes.outputs.trigger-check-outcome == 'success' || needs.check-for-changes.outputs.docs-check-outcome == 'success'
# needs: check-for-changes
# if: needs.check-for-changes.outputs.trigger-check-outcome == 'success' || needs.check-for-changes.outputs.docs-check-outcome == 'success'
permissions:
contents: write # Add permissions for deployment
steps:
- uses: actions/checkout@v4
if: github.event_name != 'pull_request_target'
Expand Down Expand Up @@ -165,14 +168,15 @@ jobs:
- name: Deploy ${{ env.DEST_DIR }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.BOT_TOKEN }}
# github_token: ${{ secrets.BOT_TOKEN }} # Comment out bot token
github_token: ${{ github.token }}
publish_branch: ${{ env.DEPLOY_BRANCH }}
publish_dir: ./docs/_build/html
destination_dir: ${{ env.DEST_DIR }}
keep_files: true
force_orphan: ${{ env.CLEAN_BRANCH }}
user_name: "TARDIS Bot"
user_email: "tardis.sn.bot@gmail.com"
user_name: "GitHub Actions" # change back to TARDIS Bot
user_email: "github-actions[bot]@users.noreply.github.com" # change back to TARDIS email

- name: Find comment
uses: peter-evans/find-comment@v1
Expand Down

0 comments on commit 9855204

Please sign in to comment.