Skip to content

Commit

Permalink
Switch primary branch to main instead of master
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Oct 26, 2023
1 parent 24b753e commit 6284c20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: TestPyPI
on:
push:
branches:
- master
- main
jobs:
DeployTestPyPI:
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ jobs:
cd doc && make html
cd ..
DeployMasterDoc:
DeployMainDoc:
runs-on: ubuntu-latest
needs: [Test,Lint,Doc]
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v2
Expand All @@ -147,13 +147,13 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/build/html
destination_dir: master
destination_dir: main

DeployDevelopmentDoc:
runs-on: ubuntu-latest
needs: [Test,Lint,Doc]
# Only run on pull requests to master and non-forks
if: github.event_name == 'pull_request' && github.base_ref == 'master' && ! github.event.pull_request.head.repo.fork
# Only run on pull requests to main and non-forks
if: github.event_name == 'pull_request' && github.base_ref == 'main' && ! github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
Expand Down

0 comments on commit 6284c20

Please sign in to comment.