mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
docs: change default-branch to main
This commit is contained in:
parent
ad558aa8bd
commit
6896bd8b80
30
README.md
30
README.md
@ -127,7 +127,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -446,7 +446,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
|
|
||||||
@ -478,7 +478,7 @@ jobs:
|
|||||||
Commands on a local machine.
|
Commands on a local machine.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ # On a default-branch branch
|
$ # On a main branch
|
||||||
$ git tag -a "v1.2.3" -m "Release v1.2.3"
|
$ git tag -a "v1.2.3" -m "Release v1.2.3"
|
||||||
$ git push origin "v1.2.3"
|
$ git push origin "v1.2.3"
|
||||||
|
|
||||||
@ -486,7 +486,7 @@ $ # After deployment
|
|||||||
$ git fetch origin
|
$ git fetch origin
|
||||||
$ git tag
|
$ git tag
|
||||||
deploy-v1.2.3 # Tag on the gh-pages branch
|
deploy-v1.2.3 # Tag on the gh-pages branch
|
||||||
v1.2.3 # Tag on the default-branch branch
|
v1.2.3 # Tag on the main branch
|
||||||
```
|
```
|
||||||
|
|
||||||
<div align="right">
|
<div align="right">
|
||||||
@ -572,7 +572,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "22 22 * * *"
|
- cron: "22 22 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -609,7 +609,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -653,7 +653,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -701,7 +701,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -752,7 +752,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -798,7 +798,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/deploy.yml'
|
- '.github/workflows/deploy.yml'
|
||||||
- 'website/**'
|
- 'website/**'
|
||||||
@ -855,7 +855,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -911,7 +911,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -946,7 +946,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -986,7 +986,7 @@ name: github pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@ -1062,7 +1062,7 @@ name: GitHub Pages
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- default-branch
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user