Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
353a6f36c2 | ||
|
|
28b05fd3fa | ||
|
|
bacf0a61ea | ||
|
|
2573b6139b | ||
|
|
96360d5a85 | ||
|
|
14069e75e2 | ||
|
|
d3edcde28b | ||
|
|
d82725c632 | ||
|
|
e504bd5c38 |
@@ -2,7 +2,7 @@ version: 1
|
|||||||
update_configs:
|
update_configs:
|
||||||
- package_manager: "docker"
|
- package_manager: "docker"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
update_schedule: "weekly"
|
update_schedule: "daily"
|
||||||
default_labels:
|
default_labels:
|
||||||
- "dependencies"
|
- "dependencies"
|
||||||
- "docker"
|
- "docker"
|
||||||
|
|||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.DS_Store
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
[](https://github.com/peaceiris/actions-gh-pages/releases)
|
[](https://github.com/peaceiris/actions-gh-pages/releases)
|
||||||

|

|
||||||
[](https://hub.docker.com/r/peaceiris/gh-pages)
|
[](https://hub.docker.com/r/peaceiris/gh-pages)
|
||||||
|
[](https://github.com/peaceiris/actions-gh-pages/releases.atom)
|
||||||
|
[](https://dependabot.com)
|
||||||
|
|
||||||
<img width="400" alt="GitHub Actions for deploying to GitHub Pages with Static Site Generators" src="./images/ogp.svg">
|
<img width="400" alt="GitHub Actions for deploying to GitHub Pages with Static Site Generators" src="./images/ogp.svg">
|
||||||
|
|
||||||
@@ -32,10 +34,12 @@ Three tokens are supported.
|
|||||||
|
|
||||||
| Token | Private repo | Public repo | Protocol | Setup |
|
| Token | Private repo | Public repo | Protocol | Setup |
|
||||||
|---|:---:|:---:|---|---|
|
|---|:---:|:---:|---|---|
|
||||||
| `GITHUB_TOKEN` | ✅️ | ❌️ | HTTPS | Unnecessary |
|
| `GITHUB_TOKEN` | ✅️ | (1) | HTTPS | Unnecessary |
|
||||||
| `PERSONAL_TOKEN` | ✅️ | ✅️ | HTTPS | Necessary |
|
| `PERSONAL_TOKEN` | ✅️ | ✅️ | HTTPS | Necessary |
|
||||||
| `ACTIONS_DEPLOY_KEY` | ✅️ | ✅️ | SSH | Necessary |
|
| `ACTIONS_DEPLOY_KEY` | ✅️ | ✅️ | SSH | Necessary |
|
||||||
|
|
||||||
|
1. Currently, GitHub Actions does not support to trigger a GitHub Pages build event using GITHUB_TOKEN on a public repository.
|
||||||
|
|
||||||
Do you want to skip the docker build step? OK, the script mode is available.
|
Do you want to skip the docker build step? OK, the script mode is available.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -805,9 +809,12 @@ jobs:
|
|||||||
An exapmle workflow for [Flutter web project].
|
An exapmle workflow for [Flutter web project].
|
||||||
Setup [Flutter] with [subosito/flutter-action].
|
Setup [Flutter] with [subosito/flutter-action].
|
||||||
|
|
||||||
|
[peanut | Dart Package] is also useful.
|
||||||
|
|
||||||
[Flutter]: https://github.com/flutter/flutter
|
[Flutter]: https://github.com/flutter/flutter
|
||||||
[Flutter web project]: https://flutter.dev/docs/get-started/web
|
[Flutter web project]: https://flutter.dev/docs/get-started/web
|
||||||
[subosito/flutter-action]: https://github.com/subosito/flutter-action
|
[subosito/flutter-action]: https://github.com/subosito/flutter-action
|
||||||
|
[peanut | Dart Package]: https://pub.dev/packages/peanut
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: github pages
|
||||||
|
|||||||
@@ -103,14 +103,14 @@ fi
|
|||||||
|
|
||||||
# push to publishing branch
|
# push to publishing branch
|
||||||
if [[ -n "${INPUT_USERNAME}" ]]; then
|
if [[ -n "${INPUT_USERNAME}" ]]; then
|
||||||
git config user.name "${INPUT_USERNAME}"
|
git config --global user.name "${INPUT_USERNAME}"
|
||||||
else
|
else
|
||||||
git config user.name "${GITHUB_ACTOR}"
|
git config --global user.name "${GITHUB_ACTOR}"
|
||||||
fi
|
fi
|
||||||
if [[ -n "${INPUT_USEREMAIL}" ]]; then
|
if [[ -n "${INPUT_USEREMAIL}" ]]; then
|
||||||
git config user.email "${INPUT_USEREMAIL}"
|
git config --global user.email "${INPUT_USEREMAIL}"
|
||||||
else
|
else
|
||||||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||||
fi
|
fi
|
||||||
git remote rm origin || true
|
git remote rm origin || true
|
||||||
git remote add origin "${remote_repo}"
|
git remote add origin "${remote_repo}"
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 42 KiB |
Reference in New Issue
Block a user