Skip to content

Commit

Permalink
rename default branch master to main (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloep authored Feb 14, 2024
1 parent 77a72e1 commit 38bb986
Showing 1 changed file with 5 additions and 5 deletions.
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'"

0 comments on commit 38bb986

Please sign in to comment.