Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
schedule:
- cron: "0 0 * * *"
- cron: "43 2 * * *"

jobs:
build:
Expand Down Expand Up @@ -45,12 +45,12 @@ jobs:

- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
if: success() && github.ref == 'refs/heads/master'
if: success() && github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./output

- name: Trigger page build
if: success() && github.ref == 'refs/heads/master'
if: success() && github.ref == 'refs/heads/main'
run: "curl 'https://api.github.com/repos/FriendsOfREDAXO/phpdoc/pages/builds' -X POST -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/vnd.github.mister-fantastic-preview'"