docs: change master branch to default-branch (#408)

This commit is contained in:
Shohei Ueda 2020-07-23 12:10:40 +09:00 committed by GitHub
parent 99a89f661a
commit 5051105279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 16 deletions

View File

@ -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.
@ -127,7 +127,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -446,7 +446,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
tags:
- 'v*.*.*'
@ -478,7 +478,7 @@ 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"
@ -486,7 +486,7 @@ $ # 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">
@ -572,7 +572,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
schedule:
- cron: "22 22 * * *"
workflow_dispatch:
@ -609,7 +609,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -653,7 +653,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -701,7 +701,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -752,7 +752,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -798,7 +798,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
paths:
- '.github/workflows/deploy.yml'
- 'website/**'
@ -855,7 +855,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -911,7 +911,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -946,7 +946,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -986,7 +986,7 @@ name: github pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy:
@ -1062,7 +1062,7 @@ name: GitHub Pages
on:
push:
branches:
- master
- default-branch
jobs:
deploy: