Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: change master branch to default-branch #408

Merged
merged 1 commit into from
Jul 23, 2020
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
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ All Actions runners: Linux (Ubuntu), macOS, and Windows are supported.

### ⭐️ Repository type - Project

Add your workflow file `.github/workflows/gh-pages.yml` and push to the remote master branch.
Add your workflow file `.github/workflows/gh-pages.yml` and push to the remote default branch branch.

An example workflow for Hugo.

Expand All @@ -127,7 +127,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -446,7 +446,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
tags:
- 'v*.*.*'

Expand Down Expand Up @@ -478,15 +478,15 @@ jobs:
Commands on a local machine.

```console
$ # On the master branch
$ # On a default-branch branch
$ git tag -a "v1.2.3" -m "Release v1.2.3"
$ git push origin "v1.2.3"

$ # After deployment
$ git fetch origin
$ git tag
deploy-v1.2.3 # Tag on the gh-pages branch
v1.2.3 # Tag on the master branch
v1.2.3 # Tag on the default-branch branch
```

<div align="right">
Expand Down Expand Up @@ -572,7 +572,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
schedule:
- cron: "22 22 * * *"
workflow_dispatch:
Expand Down Expand Up @@ -609,7 +609,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -653,7 +653,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -701,7 +701,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -752,7 +752,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -798,7 +798,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
paths:
- '.github/workflows/deploy.yml'
- 'website/**'
Expand Down Expand Up @@ -855,7 +855,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -911,7 +911,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -946,7 +946,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -986,7 +986,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down Expand Up @@ -1062,7 +1062,7 @@ name: GitHub Pages
on:
push:
branches:
- master
- default-branch

jobs:
deploy:
Expand Down