mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
docs: Add github/personal-website
Add an example workflow for github/personal-website https://github.com/github/personal-website
This commit is contained in:
parent
9794f98ff1
commit
e2a54ec0b9
30
README.md
30
README.md
@ -91,6 +91,7 @@ Notes: Actually, the `GitHub_TOKEN` works for deploying to GitHub Pages but it h
|
|||||||
- [⭐️ mdBook (Rust)](#%EF%B8%8F-mdbook-rust)
|
- [⭐️ mdBook (Rust)](#%EF%B8%8F-mdbook-rust)
|
||||||
- [⭐️ Flutter Web](#%EF%B8%8F-flutter-web)
|
- [⭐️ Flutter Web](#%EF%B8%8F-flutter-web)
|
||||||
- [⭐️ Elm](#%EF%B8%8F-elm)
|
- [⭐️ Elm](#%EF%B8%8F-elm)
|
||||||
|
- [⭐️ github/personal-website](#%EF%B8%8F-githubpersonal-website)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
- [Maintainer](#maintainer)
|
- [Maintainer](#maintainer)
|
||||||
|
|
||||||
@ -881,6 +882,35 @@ jobs:
|
|||||||
publish_dir: ./public
|
publish_dir: ./public
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### ⭐️ github/personal-website
|
||||||
|
|
||||||
|
- [github/personal-website: Code that'll help you kickstart a personal website that showcases your work as a software developer.](https://github.com/github/personal-website)
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: GitHub Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
schedule:
|
||||||
|
- cron: '24 */24 * * *' # Once a day
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./
|
||||||
|
allow_empty_commit: true
|
||||||
|
enable_jekyll: true
|
||||||
|
cname: github.peaceiris.com
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
- [MIT License - peaceiris/actions-gh-pages]
|
- [MIT License - peaceiris/actions-gh-pages]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user