Trigger the github-pages workflow even during pull requests (#1655)

+ Allows upstream identification of problems such as those that occurred during merge of PR #1567
This commit is contained in:
Dakurei 2024-06-01 02:30:55 +02:00 committed by GitHub
parent 19885e0558
commit 13c9888902
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,9 @@ on:
push: push:
branches: branches:
- main - main
pull_request:
branches:
- main
jobs: jobs:
pages: pages:
@ -33,6 +36,7 @@ jobs:
node-version: 20 node-version: 20
- name: Checkout repository for Github Pages - name: Checkout repository for Github Pages
if: github.event_name == 'push'
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
path: pokerogue_gh path: pokerogue_gh
@ -52,6 +56,7 @@ jobs:
npx typedoc --out /tmp/docs --githubPages false --entryPoints ./src/ npx typedoc --out /tmp/docs --githubPages false --entryPoints ./src/
- name: Commit & Push docs - name: Commit & Push docs
if: github.event_name == 'push'
run: | run: |
cd pokerogue_gh cd pokerogue_gh
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"