Compare commits

...

28 Commits

Author SHA1 Message Date
peaceiris
286809f3da chore(release): 3.5.8
Some checks failed
Release / release (push) Has been cancelled
2020-04-29 13:53:01 +09:00
peaceiris
5e3936a404 chore(release): Add build assets 2020-04-29 13:53:00 +09:00
dependabot-preview[bot]
f97b3d256e deps: bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.30.0 (#252) 2020-04-29 04:15:11 +00:00
dependabot-preview[bot]
7b01d765e7 deps: bump @types/node from 12.12.36 to 12.12.37 (#251) 2020-04-29 04:03:20 +00:00
dependabot-preview[bot]
4976317340 deps: bump lint-staged from 10.1.6 to 10.2.0 (#250) 2020-04-29 03:50:29 +00:00
dependabot-preview[bot]
28e7732e93 deps: bump @typescript-eslint/parser from 2.28.0 to 2.30.0 (#249) 2020-04-29 02:21:55 +00:00
dependabot-preview[bot]
390b063535 deps: bump jest from 25.3.0 to 25.5.0 (#248) 2020-04-28 20:25:54 +00:00
dependabot-preview[bot]
50bcf7b81d deps: bump jest-circus from 25.3.0 to 25.5.0 (#247) 2020-04-28 20:04:15 +00:00
Shohei Ueda
1511f85feb docs: Enhance the Tips and FAQ section
- Enhance `First Deployment with GITHUB_TOKEN`
2020-04-28 14:25:48 +09:00
Shohei Ueda
db7681db4d deps: bump git from 2.26.1 to 2.26.2 (#246) 2020-04-25 23:06:07 +09:00
peaceiris
eda4527add chore: Add issue priority [skip ci] 2020-04-23 12:55:35 +09:00
peaceiris
0ab035e1c1 Revert "chore: Add issue priority [skip ci]"
This reverts commit af61d81606.
2020-04-23 12:53:19 +09:00
Shohei Ueda
af61d81606 chore: Add issue priority [skip ci] 2020-04-23 12:52:32 +09:00
Shohei Ueda
86114bb2c7 chore: update [skip ci] 2020-04-23 12:44:24 +09:00
Shohei Ueda
1139364d4c chore: enhance about [skip ci] 2020-04-23 12:43:08 +09:00
Shohei Ueda
e3404eb04b ci: Add hook for doctoc (#244) 2020-04-22 13:33:06 +09:00
dependabot-preview[bot]
c1bc06c3e6 deps: bump lint-staged from 10.1.5 to 10.1.6 (#241) 2020-04-19 09:43:53 +00:00
peaceiris
8632feabc7 docs: update 2020-04-19 14:14:03 +09:00
peaceiris
7d421d3e4c docs: update 2020-04-19 14:11:37 +09:00
peaceiris
95d87cfaa5 docs: update 2020-04-19 11:44:23 +09:00
dependabot-preview[bot]
cfc119fff7 deps: bump lint-staged from 10.1.4 to 10.1.5 (#240) 2020-04-18 08:29:08 +00:00
Shohei Ueda
4b0ac9453b docs: Add publish_branch and publish_dir (#239) 2020-04-18 14:30:22 +09:00
dependabot-preview[bot]
b7c9581509 deps: bump @types/node from 12.12.35 to 12.12.36 (#238) 2020-04-17 21:45:30 +00:00
dependabot-preview[bot]
fd97637134 deps: bump lint-staged from 10.1.3 to 10.1.4 (#237) 2020-04-17 14:48:13 +00:00
dependabot-preview[bot]
f69bcb9ae8 deps: bump ts-jest from 25.3.1 to 25.4.0 (#236) 2020-04-17 10:14:29 +00:00
Shohei Ueda
f1ebad9abb docs: Enhance cache key (#235) 2020-04-17 09:53:26 +09:00
Shohei Ueda
63cdebd96b docs: Enhance Docusaurus example workflow (#234)
- Add on.push.paths
- Add defaults.run.working-directory
  - https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#defaultsrun
  - https://github.blog/changelog/2020-04-15-github-actions-new-workflow-features/
2020-04-17 09:27:11 +09:00
peaceiris
4f693f0ddb chore(release): Remove build assets [skip ci] 2020-04-15 10:55:53 +09:00
8 changed files with 1681 additions and 1591 deletions

View File

@@ -1,6 +1,6 @@
---
name: User support
about: Questions for this action
name: User Support
about: Questions for this Action
title: 'sample_title'
labels: support
assignees: peaceiris

View File

@@ -1,6 +1,6 @@
---
name: Bug report
about: Create a report to help us improve
name: Bug Report
about: First, use the User Support Issue Template
title: 'sample_title'
labels: bug
assignees: peaceiris

View File

@@ -2,6 +2,47 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [3.5.8](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.7...v3.5.8) (2020-04-29)
### chore
* Add issue priority [skip ci] ([eda4527](https://github.com/peaceiris/actions-gh-pages/commit/eda4527addb918b2101150ebb39fcf433918edaa))
* Add issue priority [skip ci] ([af61d81](https://github.com/peaceiris/actions-gh-pages/commit/af61d81606e4fc7e288136ff2d253e2bc55c4f48))
* enhance about [skip ci] ([1139364](https://github.com/peaceiris/actions-gh-pages/commit/1139364d4c33266789f7b3325cf9a44a8547dfd2))
* update [skip ci] ([86114bb](https://github.com/peaceiris/actions-gh-pages/commit/86114bb2c7af49107a982228b5bdb03680d01f4d))
### ci
* Add hook for doctoc (#244) ([e3404eb](https://github.com/peaceiris/actions-gh-pages/commit/e3404eb04b31f2987120c926fea07b0213caebd8)), closes [#244](https://github.com/peaceiris/actions-gh-pages/issues/244)
### deps
* bump @types/node from 12.12.35 to 12.12.36 (#238) ([b7c9581](https://github.com/peaceiris/actions-gh-pages/commit/b7c9581509f430da7d5fd97e37245a2d0a66b564)), closes [#238](https://github.com/peaceiris/actions-gh-pages/issues/238)
* bump @types/node from 12.12.36 to 12.12.37 (#251) ([7b01d76](https://github.com/peaceiris/actions-gh-pages/commit/7b01d765e76fa62e2452fd444f2b4c27a2a93821)), closes [#251](https://github.com/peaceiris/actions-gh-pages/issues/251)
* bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.30.0 (#252) ([f97b3d2](https://github.com/peaceiris/actions-gh-pages/commit/f97b3d256ec802bf086d5c96dcb299a63b38f705)), closes [#252](https://github.com/peaceiris/actions-gh-pages/issues/252)
* bump @typescript-eslint/parser from 2.28.0 to 2.30.0 (#249) ([28e7732](https://github.com/peaceiris/actions-gh-pages/commit/28e7732e93caf2520c542d47eb7482a09d92399d)), closes [#249](https://github.com/peaceiris/actions-gh-pages/issues/249)
* bump git from 2.26.1 to 2.26.2 (#246) ([db7681d](https://github.com/peaceiris/actions-gh-pages/commit/db7681db4d6bba0e054efa7da8d6494f40aa74dd)), closes [#246](https://github.com/peaceiris/actions-gh-pages/issues/246)
* bump jest from 25.3.0 to 25.5.0 (#248) ([390b063](https://github.com/peaceiris/actions-gh-pages/commit/390b063535b4dc9533b19e2bdc0a5c756725bcd3)), closes [#248](https://github.com/peaceiris/actions-gh-pages/issues/248)
* bump jest-circus from 25.3.0 to 25.5.0 (#247) ([50bcf7b](https://github.com/peaceiris/actions-gh-pages/commit/50bcf7b81dbedbab7f9d8c9cebc15c1d63724e52)), closes [#247](https://github.com/peaceiris/actions-gh-pages/issues/247)
* bump lint-staged from 10.1.3 to 10.1.4 (#237) ([fd97637](https://github.com/peaceiris/actions-gh-pages/commit/fd976371344295a7f93bf199bc5557ef179ccb8c)), closes [#237](https://github.com/peaceiris/actions-gh-pages/issues/237)
* bump lint-staged from 10.1.4 to 10.1.5 (#240) ([cfc119f](https://github.com/peaceiris/actions-gh-pages/commit/cfc119fff765ff9d58364aaacc6f3eeda2cfa803)), closes [#240](https://github.com/peaceiris/actions-gh-pages/issues/240)
* bump lint-staged from 10.1.5 to 10.1.6 (#241) ([c1bc06c](https://github.com/peaceiris/actions-gh-pages/commit/c1bc06c3e6c64d6663aaaddce19c3092f44fee76)), closes [#241](https://github.com/peaceiris/actions-gh-pages/issues/241)
* bump lint-staged from 10.1.6 to 10.2.0 (#250) ([4976317](https://github.com/peaceiris/actions-gh-pages/commit/4976317340cc18cda0238fb97829a0faaa845961)), closes [#250](https://github.com/peaceiris/actions-gh-pages/issues/250)
* bump ts-jest from 25.3.1 to 25.4.0 (#236) ([f69bcb9](https://github.com/peaceiris/actions-gh-pages/commit/f69bcb9ae88328fdbf841072c8d6273cd64775d0)), closes [#236](https://github.com/peaceiris/actions-gh-pages/issues/236)
### docs
* Add publish_branch and publish_dir (#239) ([4b0ac94](https://github.com/peaceiris/actions-gh-pages/commit/4b0ac9453b6b8c117d2d477feec9438cbadde554)), closes [#239](https://github.com/peaceiris/actions-gh-pages/issues/239)
* Enhance cache key (#235) ([f1ebad9](https://github.com/peaceiris/actions-gh-pages/commit/f1ebad9abbd9a38f40b3bf1731c8f24d11933c7f)), closes [#235](https://github.com/peaceiris/actions-gh-pages/issues/235)
* Enhance Docusaurus example workflow (#234) ([63cdebd](https://github.com/peaceiris/actions-gh-pages/commit/63cdebd96bf13f045ac949edf7242044ecfef525)), closes [#234](https://github.com/peaceiris/actions-gh-pages/issues/234)
* Enhance the Tips and FAQ section ([1511f85](https://github.com/peaceiris/actions-gh-pages/commit/1511f85febf4d985083555b7e644fc43582ec4ee))
* update ([8632fea](https://github.com/peaceiris/actions-gh-pages/commit/8632feabc7064b8023ffa7da92bf6d91cf83a0fe))
* update ([7d421d3](https://github.com/peaceiris/actions-gh-pages/commit/7d421d3e4c784eaebafdf020ccf4ce29ac14569a))
* update ([95d87cf](https://github.com/peaceiris/actions-gh-pages/commit/95d87cfaa53b3d799c1c931048a43a92ddb87d15))
## [3.5.7](https://github.com/peaceiris/actions-gh-pages/compare/v3.5.6...v3.5.7) (2020-04-15)

View File

@@ -16,7 +16,7 @@ RUN apt-get update && \
npm i -g npm
WORKDIR /git
ENV GIT_VERSION="2.26.1"
ENV GIT_VERSION="2.26.2"
RUN wget -q "https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz" && \
tar -zxf "./v${GIT_VERSION}.tar.gz" && \
rm "./v${GIT_VERSION}.tar.gz" && \

View File

@@ -16,7 +16,7 @@ The old Docker Action is [peaceiris/actions-gh-pages@v2](https://github.com/peac
## GitHub Actions for GitHub Pages
This is a **GitHub Action** to deploy your static files to **GitHub Pages**.
This deploy action can be combined simply and freely with [Static Site Generators]. (Hugo, MkDocs, Gatsby, GitBook, mdBook, etc.)
This deploy action can be combined simply and freely with [Static Site Generators]. (Hugo, MkDocs, Gatsby, GitBook, mdBook, and so on.)
[Static Site Generators]: https://www.staticgen.com/
@@ -68,6 +68,8 @@ Notes: Actually, the `GITHUB_TOKEN` works for deploying to GitHub Pages but it h
- [⭐️ `github_token`](#%EF%B8%8F-github_token)
- [⭐️ `deploy_key`](#%EF%B8%8F-deploy_key)
- [⭐️ `personal_token`](#%EF%B8%8F-personal_token)
- [⭐️ `publish_branch`](#%EF%B8%8F-publish_branch)
- [⭐️ `publish_dir`](#%EF%B8%8F-publish_dir)
- [⭐️ CNAME](#%EF%B8%8F-cname)
- [⭐️ Enable Built-in Jekyll](#%EF%B8%8F-enable-built-in-jekyll)
- [⭐️ Allow empty commits](#%EF%B8%8F-allow-empty-commits)
@@ -234,6 +236,30 @@ Read [Create SSH Deploy Key](#%EF%B8%8F-create-ssh-deploy-key), create your SSH
publish_dir: ./public
```
### ⭐️ `publish_branch`
A target branch to deploy to GitHub Pages. The default is `gh-pages`.
```yaml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master # default: gh-pages
```
### ⭐️ `publish_dir`
A target directory to deploy to GitHub Pages. The default is `public`.
```yaml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out # default: public
```
### ⭐️ CNAME
To add `CNAME` file, we can set the `cname` option.
@@ -455,7 +481,7 @@ Next, Go to **Repository Settings**
### ⭐️ First Deployment with `GITHUB_TOKEN`
The `GITHUB_TOKEN` has limitations for the first deployment so we have to select the GitHub Pages branch on the repository settings tab.
The `GITHUB_TOKEN` has limitations for the first deployment so we have to select the GitHub Pages branch on the repository settings tab. After that, do the second deployment like the following pictures.
| First deployment failed | Go to the settings tab |
|---|---|
@@ -482,7 +508,7 @@ It is useful to watch this repository (release only) to check the [latest releas
### ⭐️ Static Site Generators with Node.js
[hexo], [gitbook], [vuepress], [react-static], [gridsome], etc.
[hexo], [gitbook], [vuepress], [react-static], [gridsome], and so on.
[hexo]: https://github.com/hexojs/hexo
[gitbook]: https://github.com/GitbookIO/gitbook
@@ -680,12 +706,21 @@ An example workflow for [Docusaurus](https://docusaurus.io/).
`npx @docusaurus/init@next init website classic` is useful to create a new Docusaurus project.
```yaml
# .github/workflows/deploy.yml
name: github pages
on:
push:
branches:
- master
paths:
- '.github/workflows/deploy.yml'
- 'website/**'
defaults:
run:
working-directory: website
jobs:
deploy:
@@ -706,14 +741,12 @@ jobs:
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-website-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-website-
- run: yarn install
working-directory: ./website
- run: yarn build
working-directory: ./website
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
@@ -724,7 +757,7 @@ jobs:
### ⭐️ Static Site Generators with Python
[pelican], [MkDocs], [sphinx], etc.
[pelican], [MkDocs], [sphinx], and so on.
[pelican]: https://github.com/getpelican/pelican
[MkDocs]: https://github.com/mkdocs/mkdocs
@@ -964,6 +997,10 @@ jobs:
publish_dir: ./Output
```
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>
## License

3151
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "actions-github-pages",
"version": "3.5.7",
"version": "3.5.8",
"description": "GitHub Actions for GitHub Pages",
"main": "lib/index.js",
"engines": {
@@ -30,6 +30,9 @@
"src/**/*.ts": [
"prettier --check",
"eslint"
],
"README.md": [
"npx doctoc@1.4.0 --github"
]
},
"repository": {
@@ -60,19 +63,19 @@
"@types/jest": "^25.2.1",
"@types/js-yaml": "^3.12.3",
"@types/node": "~12",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.28.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"@zeit/ncc": "^0.22.1",
"eslint": "^6.8.0",
"eslint-plugin-jest": "^23.8.2",
"husky": "^4.2.5",
"jest": "^25.3.0",
"jest-circus": "^25.3.0",
"jest": "^25.5.0",
"jest-circus": "^25.5.0",
"js-yaml": "^3.13.1",
"lint-staged": "^10.1.3",
"lint-staged": "^10.2.0",
"prettier": "2.0.4",
"standard-version": "^7.1.0",
"ts-jest": "^25.3.1",
"ts-jest": "^25.4.0",
"typescript": "^3.8.3"
}
}