Compare commits

...

228 Commits

Author SHA1 Message Date
peaceiris
3cb9216401 chore(release): 2.4.4 2020-01-28 11:33:13 +09:00
peaceiris
20ff13abbd chore(release): Add build assets 2020-01-28 11:33:13 +09:00
dependabot-preview[bot]
6812c21f18 deps: bump @typescript-eslint/parser from 2.17.0 to 2.18.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.17.0 to 2.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.18.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 02:28:30 +00:00
dependabot-preview[bot]
a1b1127907 deps: bump @typescript-eslint/eslint-plugin from 2.17.0 to 2.18.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.17.0 to 2.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.18.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 02:24:18 +00:00
dependabot-preview[bot]
02c90246b4 deps: bump @types/jest from 24.9.1 to 25.1.0
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.1 to 25.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 02:20:28 +00:00
dependabot-preview[bot]
5000d1a8b6 deps: bump lint-staged from 10.0.2 to 10.0.3
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.2 to 10.0.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.0.2...v10.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 02:19:47 +00:00
Shohei Ueda
63038f397f docs: update badge 2020-01-27 12:29:34 +09:00
Shohei Ueda
7e8dab4a15 ci: use github/hub install script [skip ci]
https://github.com/github/hub/issues/2249
https://github.com/github/hub/pull/2453
https://github.com/actions/virtual-environments/issues/36
2020-01-26 20:31:36 +09:00
Shohei Ueda
8f4af8fa35 chore: update name 2020-01-26 18:32:24 +09:00
Shohei Ueda
b8b4d74381 docs: Add release feed badge 2020-01-26 17:13:42 +09:00
Shohei Ueda
94853340b9 fix: action failure status (#151)
Close #149

* chore: fix path to .gitconfig
2020-01-25 12:42:32 +09:00
Shohei Ueda
de65f3e128 ci: remove operations-per-run 2020-01-25 12:00:51 +09:00
Shohei Ueda
c00fd7be83 chore: update git (#150)
* chore: rename image name
* chore: add git v2.25.0
* chore: enhance Dockerfile
2020-01-25 11:56:09 +09:00
peaceiris
7c0de2ddec chore: ignore failure 2020-01-25 02:30:13 +09:00
peaceiris
236f382aa6 chore(release): Remove build assets [skip ci] 2020-01-24 13:37:15 +09:00
peaceiris
1bb54b05c8 chore(release): 2.4.3 2020-01-24 13:37:14 +09:00
peaceiris
b28afd97fa chore(release): Add build assets 2020-01-24 13:37:14 +09:00
dependabot-preview[bot]
46a6a3afdf deps: bump @actions/tool-cache from 1.3.0 to 1.3.1
Bumps [@actions/tool-cache](https://github.com/actions/toolkit/tree/HEAD/packages/tool-cache) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/tool-cache/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/tool-cache)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-24 04:33:47 +00:00
dependabot-preview[bot]
6e5afb7c2e deps: bump @actions/core from 1.2.1 to 1.2.2
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-24 04:25:45 +00:00
Shohei Ueda
737fda5741 chore: Change update_schedule from weekly to daily 2020-01-24 06:37:05 +09:00
peaceiris
c58f4ce12d chore(release): Remove build assets [skip ci] 2020-01-24 06:32:10 +09:00
peaceiris
95afbe8abf chore(release): 2.4.2 2020-01-24 06:32:09 +09:00
peaceiris
8f7332cde6 chore(release): Add build assets 2020-01-24 06:32:09 +09:00
dependabot-preview[bot]
699805b6e1 deps: bump standard-version from 7.0.1 to 7.1.0 (#145)
Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 7.0.1 to 7.1.0.
- [Release notes](https://github.com/conventional-changelog/standard-version/releases)
- [Changelog](https://github.com/conventional-changelog/standard-version/blob/master/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/standard-version/compare/v7.0.1...v7.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-24 06:29:50 +09:00
dependabot-preview[bot]
2550d0ecb0 deps: bump @types/jest from 24.9.0 to 24.9.1
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.0 to 24.9.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 21:25:32 +00:00
dependabot-preview[bot]
692ded2284 deps: bump @typescript-eslint/parser from 2.16.0 to 2.17.0 (#144)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.17.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-24 06:21:03 +09:00
dependabot-preview[bot]
e9732216ce deps: bump husky from 4.0.10 to 4.2.1
Bumps [husky](https://github.com/typicode/husky) from 4.0.10 to 4.2.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v4.0.10...v4.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 21:17:16 +00:00
dependabot-preview[bot]
3315ca857b deps: bump jest and ts-jest
Bumps [jest](https://github.com/facebook/jest) and [ts-jest](https://github.com/kulshekhar/ts-jest). These dependencies needed to be updated together.

Updates `jest` from 24.9.0 to 25.1.0
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v24.9.0...v25.1.0)

Updates `ts-jest` from 24.3.0 to 25.0.0
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v24.3.0...v25.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 21:12:39 +00:00
dependabot-preview[bot]
8d85402748 deps: bump @types/node from 13.1.8 to 13.5.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.1.8 to 13.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 21:06:26 +00:00
dependabot-preview[bot]
b4a0e8ba60 deps: bump jest-circus from 24.9.0 to 25.1.0
Bumps [jest-circus](https://github.com/facebook/jest/tree/HEAD/packages/jest-circus) from 24.9.0 to 25.1.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v25.1.0/packages/jest-circus)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 20:58:36 +00:00
dependabot-preview[bot]
66d664bedd deps: bump @typescript-eslint/eslint-plugin from 2.16.0 to 2.17.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.17.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 20:54:20 +00:00
dependabot-preview[bot]
87e38e224d deps: bump lint-staged from 10.0.0 to 10.0.2
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.0 to 10.0.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.0.0...v10.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 20:50:09 +00:00
Shohei Ueda
4fb2901627 style: remove extra whitespace [skip ci] 2020-01-24 00:20:16 +09:00
Shohei Ueda
7a50ddc694 ci: Add Hugo version dump step 2020-01-24 00:17:39 +09:00
Shohei Ueda
b55f1c81fb test: Add fail to fetch latest due to 404 (#137) 2020-01-21 01:35:00 +09:00
Shohei Ueda
0311892edd docs: Add Codecov badge
docs: Remove Coveralls badge
2020-01-21 01:08:43 +09:00
Shohei Ueda
94ce32ea1b ci: Add codecov/codecov-action@v1 (#136)
ci: Comment out coverallsapp/github-action@v1.0.1
2020-01-21 01:04:46 +09:00
peaceiris
3317963a65 deps: update 2020-01-20 05:09:09 +09:00
Shohei Ueda
a79f520add docs: Update action execution time 2020-01-19 16:35:39 +09:00
Shohei Ueda
b6a7551978 ci: Add operations-per-run 1 2020-01-19 15:37:28 +09:00
peaceiris
490ff3b995 chore(release): Remove build assets [skip ci] 2020-01-18 12:36:55 +09:00
peaceiris
d906f2610b chore(release): 2.4.1 2020-01-18 12:36:54 +09:00
peaceiris
bb87612dba chore(release): Add build assets 2020-01-18 12:36:54 +09:00
Shohei Ueda
6281061c0d test: Add test for extended option (#134) 2020-01-18 12:33:56 +09:00
Shohei Ueda
8323a17f96 chore: Update description 2020-01-18 12:23:58 +09:00
Shohei Ueda
283bc47636 refactor: main and installer (#133)
* refactor: installer
* test: Fix workDir cleanup
2020-01-18 12:07:13 +09:00
Shohei Ueda
442aa4dbd4 test: Add unit testing (get-latest-version) (#132) 2020-01-18 11:11:17 +09:00
Shohei Ueda
386980e22b test: Add integration testing (#131)
* docs: Update description
* deps: Add nock
* chore: Add resolveJsonModule
* test: Add integration testing
* chore: Add @typescript-eslint/eslint-plugin
* refactor: Fix lint errors
* chore: Add eslint-plugin-jest
* refactor: Fix lint errors
* test: Add remove working files
* ci: Comment out cache steps
2020-01-18 10:29:06 +09:00
Shohei Ueda
477d977a96 docs: Update execution time 2020-01-18 04:38:39 +09:00
Shohei Ueda
4642226db0 refactor: Use node-fetch instead of xmlhttprequest (#130)
* deps: Add node-fetch, remove xmlhttprequest
* refactor: Use node-fetch instead of xmlhttprequest
2020-01-18 04:36:10 +09:00
peaceiris
3130d100df docs: Add Coverage Status badge [skip ci] 2020-01-18 02:59:59 +09:00
Shohei Ueda
66bce0558a test: Enable Coveralls (#129) 2020-01-18 02:48:31 +09:00
Shohei Ueda
d226d51229 ci: Comment out push event [skip ci] 2020-01-18 02:18:31 +09:00
Shohei Ueda
37cc539052 ci: Add action test workflow 2020-01-18 02:16:00 +09:00
peaceiris
48ef2dbba3 chore: Remove extra title [skip ci] 2020-01-18 02:09:21 +09:00
peaceiris
5817344f90 chore(release): Remove build assets [skip ci] 2020-01-18 01:59:40 +09:00
peaceiris
92ca1cb5bb chore(release): 2.4.0 2020-01-18 01:59:40 +09:00
peaceiris
1b689687f3 chore(release): Add build assets 2020-01-18 01:59:39 +09:00
peaceiris
76e22f1114 docs: Reindent [skip ci] 2020-01-18 01:56:05 +09:00
peaceiris
490ab9b0a4 docs: Add back to TOC link 2020-01-18 01:54:59 +09:00
peaceiris
3d1e811264 docs: Add new sections 2020-01-18 01:50:49 +09:00
peaceiris
6a39a0f0e5 docs: Bump Hugo version v0.62.2 2020-01-18 01:46:42 +09:00
peaceiris
fbf2ba3b8b ci: Add [skip ci] 2020-01-18 01:40:52 +09:00
peaceiris
9d8553d36d ci: Add release workflow [skip ci] 2020-01-18 01:40:06 +09:00
peaceiris
7d9bfa0c1d ci: Enhance tag creation 2020-01-18 01:39:09 +09:00
peaceiris
5ce129c278 chore: Add .DS_Store [skip ci] 2020-01-18 01:12:59 +09:00
peaceiris
7496c44053 test: Add Docker container for testing [skip ci] 2020-01-18 01:10:09 +09:00
peaceiris
dc9576430f chore: Add standard-version [skip ci] 2020-01-18 01:07:24 +09:00
peaceiris
3b68672699 chore: Remove .gitattributes [skip ci] 2020-01-18 00:55:20 +09:00
Shohei Ueda
6a7231ef83 deps: update (#126) 2020-01-18 00:52:59 +09:00
Shohei Ueda
4331a62207 chore: Add task to autorun npm ci [skip ci] (#128) 2020-01-18 00:52:16 +09:00
Shohei Ueda
7dc067063b chore: Disable branch execution (#125) 2020-01-18 00:44:07 +09:00
Shohei Ueda
57168bc2bc chore: Update LICENSE year 2020-01-16 17:42:37 +09:00
Shohei Ueda
cca78d865e deps: upgrade node v12.14.1 (#119) 2020-01-10 10:20:50 +09:00
Shohei Ueda
bad8e7f80f deps: update (#118) 2020-01-10 10:16:11 +09:00
Shohei Ueda
ca3c62d21c feat: update deps (#110) 2019-12-23 17:40:26 +09:00
Shohei Ueda
25520f73cd feat: update node 12.14.0 (#105) 2019-12-19 04:20:34 +09:00
Shohei Ueda
5e6d8b50e2 feat: update deps (#104) 2019-12-18 07:08:02 +09:00
peaceiris
d006b81d18 docs: update hugo-version to v0.61.0 2019-12-18 07:04:13 +09:00
peaceiris
1fa5fb2f2e docs: add link to peaceiris/hugo-extended-docker 2019-12-18 07:01:35 +09:00
Shohei Ueda
f21cef4446 chore: fix tag push 2019-12-14 21:27:59 +09:00
peaceiris
754a1d28dd chore: Add .gitattributes 2019-12-14 19:38:51 +09:00
peaceiris
ae65d5c8e9 2.3.2 2019-12-14 18:46:47 +09:00
Shohei Ueda
10f36c7c91 feat: update deps (#103) 2019-12-14 17:59:17 +09:00
Shohei Ueda
236e039b5f chore: update actions/checkout to v2 2019-12-14 17:46:47 +09:00
Shohei Ueda
2f904a6aa6 chore: enhance workflow 2019-12-14 17:42:59 +09:00
Shohei Ueda
2b3acb31e4 chore: Add message 2019-12-10 13:50:09 +09:00
Shohei Ueda
f14d276121 chore: Enhance syntax 2019-12-09 18:58:26 +09:00
Shohei Ueda
9eb8f9e108 Update purge-readme-image-cache.yml 2019-12-09 10:38:30 +09:00
peaceiris
69200f8579 gha: Remove push trigger 2019-12-08 17:46:26 +09:00
peaceiris
3cf50c6d11 gha: Add push trigger 2019-12-08 17:45:29 +09:00
peaceiris
900499cd1c gha: Remove push trigger 2019-12-08 17:27:29 +09:00
peaceiris
da7c321b3b gha: Add workflow to purge readme image cache 2019-12-08 17:21:16 +09:00
Shohei Ueda
739a95f1e7 gha: Enhance workflows (#102)
* gha: Add Pull Request to stale target
* gha: Add ncc check step (Close #98 )
* src: Rename showVersion()
* test: Add not to be cases
* Remove old comment
* gha: Add update major tag workflow (Close #97 )
2019-12-08 15:45:59 +09:00
Shohei Ueda
bc6f48c683 deps: update (#101) 2019-12-08 13:07:31 +09:00
Shohei Ueda
cf07920706 docs: Pin peaceiris/actions-gh-pages to v2 2019-12-08 07:57:55 +09:00
peaceiris
3e0ab3eb25 gha: Pin version actions/upload-artifact to v1 2019-12-05 19:42:03 +09:00
Shohei Ueda
c5ea31b9d7 Create stale.yml 2019-12-05 17:06:35 +09:00
Shohei Ueda
bc06efb2e0 docs: Pin action version 2019-12-01 03:56:39 +09:00
Shohei Ueda
3b3c59db47 docs: Add stable tag v2 2019-11-28 20:47:38 +09:00
Shohei Ueda
b51e0ae5b4 Update README.md 2019-11-28 20:43:56 +09:00
peaceiris
8b813b0c62 deps: update 2019-11-28 00:11:39 +09:00
Shohei Ueda
638f751056 Update test.yml (#96) 2019-11-27 22:05:49 +09:00
Shohei Ueda
d04830441a Delete feature_request.md 2019-11-27 21:52:43 +09:00
Shohei Ueda
5dc353210f Update issue templates 2019-11-27 21:52:09 +09:00
peaceiris
129fcc86a6 docs: Update tag 2019-11-22 12:22:33 +09:00
Shohei Ueda
34e697e615 docs: Add Back to TOC link 2019-11-22 12:19:08 +09:00
Shohei Ueda
608a9dce06 Update README.md 2019-11-22 12:17:04 +09:00
peaceiris
bcfd41e8b4 docs: update 2019-11-22 12:15:00 +09:00
Shohei Ueda
0a102fbbed docs: Add tips section (Read Hugo version from file) (#89) 2019-11-22 12:12:20 +09:00
Shohei Ueda
ef869fb22f Path join (#92) 2019-11-22 11:14:44 +09:00
peaceiris
1490c6e417 deps: update 2019-11-22 09:38:27 +09:00
peaceiris
ab3f21340f deps: update 2019-11-17 20:48:26 +09:00
Shohei Ueda
3ab6d78f1e deps: Compile deps into single file with ncc (#88)
* deps: Compile deps into single file with ncc
* ci: update husky setting

Close #67
2019-11-17 20:39:17 +09:00
peaceiris
007cfe211d gha: Remove matrix exclude 2019-11-17 20:07:23 +09:00
peaceiris
1d2fa2a9c3 gha: Add matrix exclude 2019-11-17 20:05:12 +09:00
Shohei Ueda
10b88ee9bf gha: Add cache step (#87) 2019-11-17 19:59:01 +09:00
Shohei Ueda
b93236ba6f deps: upgrade node to 12.13.0 (#86) 2019-11-13 17:29:31 +09:00
Shohei Ueda
535d0e0aa9 gha: update (#85) 2019-11-13 17:05:13 +09:00
peaceiris
90fbf33ad8 deps: update 2019-11-13 16:55:59 +09:00
Shohei Ueda
d3401a30a3 docs: Add codefactor badge 2019-11-13 12:58:32 +09:00
Shohei Ueda
eb85852ce3 deps: update (#83) 2019-11-11 22:17:46 +09:00
Shohei Ueda
3c10f8d88a Update README.md 2019-11-07 08:21:32 +09:00
Shohei Ueda
0de12a826f gha: update to macos-latest 2019-11-07 08:17:43 +09:00
Shohei Ueda
5bb02a4a7d docs: update to macos-latest 2019-11-07 08:15:55 +09:00
peaceiris
9aa9bf7c5a gha: Add paths-ignore to pull_request 2019-11-03 13:57:52 +09:00
Shohei Ueda
3be578e3c5 Update test.yml 2019-11-03 13:29:31 +09:00
peaceiris
ec916d70ad github: Update action meta 2019-10-29 10:03:36 +09:00
peaceiris
d88559854c github: Update action meta 2019-10-29 09:59:34 +09:00
peaceiris
2965e59bb8 deps: update 2019-10-29 09:56:12 +09:00
peaceiris
f0004ebb52 github: Update action meta 2019-10-29 09:54:47 +09:00
peaceiris
0101f0a550 github: Remove FUNDING.yml 2019-10-29 03:26:27 +09:00
Shohei Ueda
c31a671975 Update issue templates 2019-10-29 03:23:41 +09:00
peaceiris
78c603eb60 github: Add issue template config
https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
2019-10-29 03:17:06 +09:00
Shohei Ueda
bbc02a7bb6 Update issue templates 2019-10-29 03:11:09 +09:00
peaceiris
8e53828e04 docs: Remove Hugo --gc flag
This flag should be used on local.
It is wasteful to use the Garbage Collection on CI.
2019-10-24 21:51:13 +09:00
peaceiris
3fe8ef06d5 github: Add CODEOWNERS 2019-10-24 06:03:40 +09:00
peaceiris
3e1caf266f deps: update 2019-10-23 20:02:44 +09:00
peaceiris
827a8f8ea5 deps: Add dependabot config 2019-10-23 20:01:55 +09:00
peaceiris
7ed9704167 deps: update 2019-10-22 15:20:10 +09:00
dependabot-preview[bot]
967e91f479 build(deps): bump @actions/core from 1.1.3 to 1.2.0 (#68)
* build(deps): bump @actions/core from 1.1.3 to 1.2.0

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.1.3 to 1.2.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/master/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* deps: npm run build
2019-10-22 00:47:05 +09:00
peaceiris
46f4f706ee docs: update 2019-10-19 16:52:57 +09:00
peaceiris
5d81587f8c docs: Remove the link to actions tab
We need to login to access the actions tab.

https://github.com/sdras/awesome-actions/issues/232
2019-10-17 16:31:56 +09:00
dependabot-preview[bot]
71b8a771a4 build(deps-dev): bump @types/node from 12.11.0 to 12.11.1 (#66)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.11.0 to 12.11.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-16 15:38:12 +09:00
peaceiris
432b4df64a deps: update 2019-10-16 07:42:58 +09:00
peaceiris
199ebd1829 deps: update 2019-10-15 16:15:10 +09:00
peaceiris
9582ca51e5 docs: update workflow example, enhance build step 2019-10-14 21:57:26 +09:00
peaceiris
79ff7701be deps: update 2019-10-14 13:29:11 +09:00
peaceiris
ed1ba0af60 deps: update 2019-10-10 15:25:52 +09:00
peaceiris
c57482c110 deps: update 2019-10-09 14:03:54 +09:00
peaceiris
4e9981b947 chore: delete line 2019-10-09 11:49:24 +09:00
peaceiris
7082e0fbec config: Add .envrc 2019-10-09 11:46:06 +09:00
Shohei Ueda
3e55082b3f gha: Use setup-node (#58)
* config: Add .nvmrc
* gha: Add setup-node step
* gha: Add step to read .nvmrc

Close #55
2019-10-09 00:20:05 +09:00
imgbot[bot]
839eb279b0 [ImgBot] Optimize images (#56)
/images/ogp.svg -- 257.54kb -> 257.51kb (0.01%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2019-10-08 14:01:01 +09:00
peaceiris
a02eaa1734 deps: update 2019-10-08 13:47:18 +09:00
peaceiris
fa565fb82d docs: update workflow example 2019-10-07 20:15:02 +09:00
peaceiris
7404f29555 chore: update .gitignore 2019-10-07 15:10:37 +09:00
peaceiris
7b66ed001b docs: update tag 2019-10-07 00:19:53 +09:00
peaceiris
64951c5a73 docs: update 2019-10-07 00:11:15 +09:00
peaceiris
35c74b6a6a deps: update 2019-10-04 12:19:43 +09:00
peaceiris
b5fb138703 meta: Update description 2019-10-03 11:35:41 +09:00
Shohei Ueda
6f6a564fad Deps: update (#53)
* deps: update

* deps: update node_modules
2019-10-02 10:58:52 +09:00
peaceiris
cd3751ce70 gha: enhance trigger 2019-10-01 20:10:45 +09:00
peaceiris
07e434d37c deps: update lint-staged 2019-10-01 14:54:03 +09:00
peaceiris
1405de8b20 deps: update eslint 2019-10-01 11:01:26 +09:00
peaceiris
7346c7bdad deps: update eslint 2019-09-29 14:08:38 +09:00
peaceiris
f1ac6bf271 deps: update husky 2019-09-28 11:19:42 +09:00
peaceiris
c7b570bed5 deps: update 2019-09-26 19:48:38 +09:00
Shohei Ueda
3ae7dd1270 deps: update (#52)
#50
2019-09-26 14:50:12 +09:00
peaceiris
9fdb1cb749 docs: update tag of peaceiris/actions-gh-pages to v2.4.0 2019-09-25 12:47:37 +09:00
peaceiris
e2b52b7b4d docs: update tag to v2.2.1 2019-09-25 12:44:14 +09:00
Shohei Ueda
8e97852759 Deps: update (#49)
* deps: update
* deps: update node_modules

#46 #47 #48
2019-09-25 12:40:38 +09:00
peaceiris
b46070141b docs: Add submodules to actions/checkout
https://github.com/peaceiris/actions-hugo/issues/42
2019-09-24 07:31:06 +09:00
peaceiris
a1adb3bb7b gha: remove paths 2019-09-23 14:35:33 +09:00
peaceiris
fbb67a3359 docs: update tag 2019-09-23 14:10:41 +09:00
peaceiris
2e5b1b84d6 deps: upgrade lint-staged 9.3.0 2019-09-23 12:36:26 +09:00
peaceiris
6d819cab4c gha: fix pull_request trigger 2019-09-23 11:33:57 +09:00
Shohei Ueda
a6d33f08ac config: enhance tsconfig.json (#44)
* config: enhance tsconfig.json (Set sourceMap and removeComments to true)
* gha: Add pull_request trigger, close #43
* config: Add waring emoji
2019-09-23 10:58:19 +09:00
Shohei Ueda
71663ea875 gha: use paths instead of paths-ignore (#41)
* gha: use paths instead of paths-ignore
* docs: update from 3 sec to 4 sec
* ci: update husky post-commit hook
2019-09-22 15:45:20 +09:00
Shohei Ueda
d7d48e3009 Refactor: enhance Hugo version dumping (#39) 2019-09-22 10:24:28 +09:00
peaceiris
39aa1b7d04 docs: Add Table of Contents 2019-09-22 09:43:11 +09:00
Shohei Ueda
b10091c0dc Enhance: workflow (#38)
* gha: Add paths-ignore
* docs: enhance
2019-09-22 09:37:17 +09:00
peaceiris
824187d952 fix: npm run tsc 2019-09-22 08:42:53 +09:00
Shohei Ueda
e194c83989 Refactor: remove Golang and Git dumping (#37)
* ci: setup lint-staged
* refactor: remove golang and git dumping
2019-09-22 08:13:23 +09:00
peaceiris
c3970dfbdd config: update meta data 2019-09-21 22:45:31 +09:00
peaceiris
082748017c deps: update @actions/core 2019-09-21 11:28:40 +09:00
dependabot-preview[bot]
79d6bc5f6e build(deps): bump @actions/core from 1.1.0 to 1.1.1 (#35)
Bumps [@actions/core](https://github.com/actions/toolkit) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Commits](https://github.com/actions/toolkit/compare/@actions/core@1.1.0...@actions/tool-cache@1.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-21 11:24:42 +09:00
peaceiris
8f1aef7e73 docs: update peaceiris/actions-hugo@v2.2.0 2019-09-21 10:46:47 +09:00
Shohei Ueda
dc8541739a Feat: Support macOS and Windows, migrate JavaScript to TypeScript (#32)
- Support macOS and Windows (Close #24 )
- Refactoring
  - Error handling
  - TypeScript
- Prettier (Close #29 )
- GHA: Add upload-artifact step for test coverage
- deps: Install husky
2019-09-21 10:41:21 +09:00
Shohei Ueda
4d54b90c0e Refactor: directory structure (#31)
* config: update version
* refactor: move source codes to lib directory, Close #30
* refactor: move test code
2019-09-18 07:32:17 +09:00
peaceiris
25a3456032 config: update version 2019-09-18 05:14:10 +09:00
peaceiris
4f371785be docs: update v2.1.0 2019-09-18 04:23:27 +09:00
peaceiris
3bbd6d1917 docs: update readme 2019-09-18 04:18:10 +09:00
Shohei Ueda
d46d0aa12e Refactor: Get the latest version from Homebrew (#28)
Refactoring

* feat: Add reject to Promise
* feat: Add printing inputs
* feat: Add error handling to getLatestVersion()
* feat: show version of Hugo, Go, and Git (Close #23)
* refactor: Get the latest version from Homebrew (Close #26)
* refactor: enhance error message of promise reject

Enhancement for workflow

* gha: Add deps (test-prod job needs test job)
* gha: Fix matrix testing
* gha: comment out Build production step
* gha: remove Dump step

Update README

* docs: update readme
2019-09-18 04:11:47 +09:00
Shohei Ueda
85171ece4e refactor: Add process.env.HOME (#27) 2019-09-17 23:20:28 +09:00
peaceiris
624c2a083b docs: Add description about this action 2019-09-17 20:39:59 +09:00
peaceiris
7a9975a8b1 deps: upgrade eslint to 6.4.0 2019-09-16 15:20:59 +09:00
peaceiris
c635fd9746 docs: Fix path to GitHub Actions status badge 2019-09-16 08:45:47 +09:00
peaceiris
19661a5c56 gha: fix action name 2019-09-16 08:33:49 +09:00
peaceiris
c4f3b85a0d gha: Add branding 2019-09-16 08:33:04 +09:00
Shohei Ueda
68358aa004 Migrate javascript action (#21) 2019-09-16 08:27:57 +09:00
peaceiris
ded0a1ada3 gha: update workflow trigger 2019-09-15 05:27:30 +09:00
peaceiris
b7618725f9 deps: Upgrade Hugo to v0.58.2 2019-09-15 05:24:34 +09:00
peaceiris
38f4938bc6 add: github repository card of peaceiris/actions-gh-pages 2019-09-10 01:25:39 +09:00
peaceiris
d8740dd53b gha: add hadolint job to check Dockerfile 2019-09-08 21:18:27 +09:00
peaceiris
2d9de755b5 upgrade: Hugo to v0.58.1 2019-09-08 18:03:21 +09:00
peaceiris
eb817c8e92 update(readme): peaceiris/actions-gh-pages to v2.2.0 2019-09-08 17:54:44 +09:00
peaceiris
672bb33daa use: ACTIONS_DEPLOY_KEY 2019-09-06 03:09:36 +09:00
peaceiris
26378c050c add: action.yml 2019-09-06 03:07:42 +09:00
peaceiris
dd1c91caf4 update: peaceiris/actions-gh-pages to v2.1.0 2019-09-06 00:38:20 +09:00
peaceiris
db1611bb0d gha: remove if statement from steps 2019-09-05 01:50:24 +09:00
Shohei Ueda
03083c655e Release v0.58.0 (#17)
* upgrade: Hugo to v0.58.0
* fix: push workflow
* remove: tag filter from push workflow
* upgrade: base image golang to 1.13.0

- https://gohugo.io/news/0.58.0-relnotes/
- https://discourse.gohugo.io/t/hugo-benchmarks-go-1-12-vs-go-1-13/20572
2019-09-05 01:43:34 +09:00
peaceiris
3439246b4a fix: FUNDING.yml 2019-09-04 22:24:58 +09:00
peaceiris
b2c2768a0c add: Docker Hub Build Status badge 2019-09-02 19:23:11 +09:00
peaceiris
ff9b678d15 rename: example workflow name 2019-08-22 05:03:19 +09:00
peaceiris
a2e4fdca67 enhance: yaml example 2019-08-22 02:54:38 +09:00
Shohei Ueda
55565fc0f6 Release v0.57.2 (#14)
* enhance: GitHub Actions

* upgrade: hugo to v0.57.2

* enhance: Pull Request template
2019-08-20 00:52:44 +09:00
Shohei Ueda
79fb16c8e4 Release: v0.57.1 (#13)
* upgrade: hugo to v0.57.1

* enhance: .github/PULL_REQUEST_TEMPLATE.md
2019-08-16 20:45:05 +09:00
peaceiris
d08dcd0297 fix: CI 2019-08-16 00:29:52 +09:00
peaceiris
1daa8a255f enhance: test job 2019-08-16 00:08:44 +09:00
peaceiris
46fbb349ce add: CI filters 2019-08-15 23:48:21 +09:00
Shohei Ueda
d079faea7e enhance: GitHub Actions settings (#11) 2019-08-15 21:26:43 +09:00
Shohei Ueda
b9842008ed enhance: GitHub Actions settings (#10) 2019-08-15 21:19:55 +09:00
Shohei Ueda
021efbc871 add: filter to prevent CI when branch are deleted (#9) 2019-08-15 20:43:36 +09:00
Shohei Ueda
b8232e8a2c Release v0.57.0 (#8)
* migrate: GitHub Actions beta v2 (HCL to YAML)

* add: Pull Request template

* upgrade: actions

* enhance: GitHub Actions config

* update: readme

* remove: patreon image
2019-08-15 20:26:15 +09:00
Shohei Ueda
b101526f7f upgrade: hugo to v0.56.3 (#6) 2019-07-31 22:23:35 +09:00
Shohei Ueda
f7fd45cb9e release: v0.56.2 (#5)
* change: install from binary

* update: tag on readme

* add: move hugo binary under GOPATH

* upgrade: hugo to v0.56.2
2019-07-30 19:43:01 +09:00
Shohei Ueda
09ca2911f5 v0.56.1 (#4)
* upgrade: hugo to v0.56.1

* update: readme for v0.56.1
2019-07-29 08:27:02 +09:00
48 changed files with 20600 additions and 101 deletions

9
.dependabot/config.yml Normal file
View File

@@ -0,0 +1,9 @@
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "daily"
default_labels:
- "dependencies"
commit_message:
prefix: "deps"

View File

@@ -1,5 +1,2 @@
.git .*
.github *
LICENSE
README.md
images

13
.editorconfig Normal file
View File

@@ -0,0 +1,13 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[Makefile]
indent_size = 4
indent_style = tab

3
.envrc Normal file
View File

@@ -0,0 +1,3 @@
nvmrc=~/.nvm/nvm.sh
source $nvmrc
nvm use

24
.eslintrc.json Normal file
View File

@@ -0,0 +1,24 @@
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019
},
"rules": {
}
}

3
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1,3 @@
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
* @peaceiris

8
.github/FUNDING.yml vendored
View File

@@ -1,8 +0,0 @@
# These are supported funding model platforms
github: peaceiris
patreon: peaceiris
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
custom: # Replace with a single custom sponsorship URL

31
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug: This is a sample issue title'
labels: bug
assignees: peaceiris
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Your YAML file**
- A link to your repository
- A link to your YAML file
**Additional context**
Add any other context about the problem here.

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: GitHub Actions Community Forum
url: https://github.community/t5/GitHub-Actions/bd-p/actions
about: Please ask questions about GitHub Actions here.
- name: Hugo Community Forum
url: https://discourse.gohugo.io/
about: Please ask questions about Hugo here.

20
.github/ISSUE_TEMPLATE/proposal.md vendored Normal file
View File

@@ -0,0 +1,20 @@
---
name: Proposal
about: Suggest an idea for this project
title: 'proposal: This is a sample title'
labels: proposal
assignees: peaceiris
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@@ -1,9 +0,0 @@
workflow "Main workflow" {
on = "push"
resolves = ["docker-build"]
}
action "docker-build" {
uses = "actions/docker/cli@master"
args = "build -t peaceiris/actions-hugo ."
}

View File

@@ -0,0 +1,16 @@
name: Purge image cache
on:
schedule:
- cron: '4 18 * * */7'
jobs:
purge:
runs-on: ubuntu-18.04
steps:
- run: >
curl -sL https://github.com/${GITHUB_REPOSITORY} |
grep -oE '<img src="https?://camo.githubusercontent.com/[^"]+' |
sed -e 's/<img src="//' |
xargs -I % curl -sX PURGE %

37
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
- name: Install github/hub
run: |
export HUB_VERSION="2.14.1"
curl -fsSL https://github.com/github/hub/raw/40e421edd2c63d57bb8daa4bb9bbdfa21e8becf9/script/get | bash -s "${HUB_VERSION}"
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME="${GITHUB_REF##refs/tags/}"
echo "See [CHANGELOG.md](https://github.com/${GITHUB_REPOSITORY}/blob/${TAG_NAME}/CHANGELOG.md) for more details." > ./release_notes.md
RELEASE_NAME="$(jq -r '.name' ./package.json)"
sed -i "1i${RELEASE_NAME} ${TAG_NAME}\n" ./release_notes.md
./bin/hub release create \
--draft \
--prerelease \
--file ./release_notes.md \
"${TAG_NAME}"

17
.github/workflows/stale.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Stale
on:
schedule:
- cron: "6 6 * * *"
jobs:
stale:
runs-on: ubuntu-18.04
steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
stale-pr-message: 'This pull request is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
days-before-stale: 21
days-before-close: 7

38
.github/workflows/test-action.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Daily Test
on:
# push:
schedule:
- cron: '13 13 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- 'ubuntu-18.04'
- 'macos-latest'
- 'windows-latest'
hugo-version:
- 'latest'
- '0.61.0'
extended:
- true
- false
steps:
- uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ matrix.hugo-version }}
extended: ${{ matrix.extended }}
- name: Run hugo version
run: echo "::set-output name=hugo_version::$(hugo version)"
id: hugo_version
- name: '${{ steps.hugo_version.outputs.hugo_version }}'
run: echo '${{ steps.hugo_version.outputs.hugo_version }}'

93
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,93 @@
name: 'Test'
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
types:
- opened
- synchronize
paths-ignore:
- '**.md'
jobs:
skipci:
runs-on: ubuntu-18.04
steps:
- run: echo "[Skip CI] ${{ contains(github.event.head_commit.message, '[skip ci]') }}"
test:
runs-on: ${{ matrix.os }}
if: contains(github.event.head_commit.message, '[skip ci]') == false
strategy:
matrix:
os:
- 'ubuntu-18.04'
- 'macos-latest'
- 'windows-latest'
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
# - name: Get npm cache directory
# id: npm-cache
# run: |
# echo "::set-output name=dir::$(npm config get cache)"
#
# - name: Cache npm
# uses: actions/cache@v1
# with:
# path: ${{ steps.npm-cache.outputs.dir }}
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
- run: npm ci
- name: Run prettier
if: startsWith(matrix.os, 'ubuntu')
run: npm run format:check
- name: Run eslint
if: startsWith(matrix.os, 'ubuntu')
run: npm run lint
- name: Run ncc
if: startsWith(matrix.os, 'ubuntu')
run: npm run build
- run: npm test
- name: Upload test coverage as artifact
uses: actions/upload-artifact@v1
with:
name: coverage
path: coverage
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload test coverage to Coveralls
# uses: coverallsapp/github-action@v1.0.1
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# parallel: true
# - name: Coveralls Finished
# uses: coverallsapp/github-action@v1.0.1
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# parallel-finished: true

23
.github/workflows/update-major-tag.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Update major tag
on:
release:
types: [published]
jobs:
update:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Update major tag
if: github.event.release.prerelease == false
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
export TAG_NAME="${GITHUB_REF##refs/tags/}"
export TAG_MAJOR="${TAG_NAME%%.*}"
git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}"
git push --force origin "${TAG_MAJOR}"

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
.DS_Store
coverage
.npm
.eslintcache
.env
node_modules

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
12.14.1

11
.prettierrc.json Normal file
View File

@@ -0,0 +1,11 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid",
"parser": "typescript"
}

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}

163
CHANGELOG.md Normal file
View File

@@ -0,0 +1,163 @@
# Changelog
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.
## [2.4.4](https://github.com/peaceiris/actions-hugo/compare/v2.4.3...v2.4.4) (2020-01-28)
### chore
* ignore failure ([7c0de2d](https://github.com/peaceiris/actions-hugo/commit/7c0de2ddec0ad6a617eed9a78836b75151c9f870))
* update git (#150) ([c00fd7b](https://github.com/peaceiris/actions-hugo/commit/c00fd7be83dad02c1e07a09bfb526a3e2d67fa75)), closes [#150](https://github.com/peaceiris/actions-hugo/issues/150)
* update name ([8f4af8f](https://github.com/peaceiris/actions-hugo/commit/8f4af8fa35a55337783683108d969c57a9541dae))
### ci
* remove operations-per-run ([de65f3e](https://github.com/peaceiris/actions-hugo/commit/de65f3e1283667e67fe0676a6498d02951ee22d5))
* use github/hub install script [skip ci] ([7e8dab4](https://github.com/peaceiris/actions-hugo/commit/7e8dab4a1585bb1241a44c53eeae4acc25fe0661))
### deps
* bump @types/jest from 24.9.1 to 25.1.0 ([02c9024](https://github.com/peaceiris/actions-hugo/commit/02c90246b441e21119ffe228b29c43ac443ca688))
* bump @typescript-eslint/eslint-plugin from 2.17.0 to 2.18.0 ([a1b1127](https://github.com/peaceiris/actions-hugo/commit/a1b1127907729bf5a7533f63111feaf16919ee1b))
* bump @typescript-eslint/parser from 2.17.0 to 2.18.0 ([6812c21](https://github.com/peaceiris/actions-hugo/commit/6812c21f1895dbef58aca3a976d0d3852d660dd0))
* bump lint-staged from 10.0.2 to 10.0.3 ([5000d1a](https://github.com/peaceiris/actions-hugo/commit/5000d1a8b64a136a7350b3f3debc93fb21872a06))
### docs
* Add release feed badge ([b8b4d74](https://github.com/peaceiris/actions-hugo/commit/b8b4d743819166af3ff7f530bbdc6d3480913cb9))
* update badge ([63038f3](https://github.com/peaceiris/actions-hugo/commit/63038f397f199600101c79aca6bc505c8718d1b7))
### fix
* action failure status (#151) ([9485334](https://github.com/peaceiris/actions-hugo/commit/94853340b9510c41a18016dbaa8d41e42044300c)), closes [#151](https://github.com/peaceiris/actions-hugo/issues/151) [#149](https://github.com/peaceiris/actions-hugo/issues/149)
## [2.4.3](https://github.com/peaceiris/actions-hugo/compare/v2.4.2...v2.4.3) (2020-01-24)
### chore
* Change update_schedule from weekly to daily ([737fda5](https://github.com/peaceiris/actions-hugo/commit/737fda5741cb12d8992d4c75e249bd0392e162a7))
### deps
* bump @actions/core from 1.2.1 to 1.2.2 ([6e5afb7](https://github.com/peaceiris/actions-hugo/commit/6e5afb7c2e3739813acca54db234f1c13cf1e596))
* bump @actions/tool-cache from 1.3.0 to 1.3.1 ([46a6a3a](https://github.com/peaceiris/actions-hugo/commit/46a6a3afdff838a10f9f9e063170cfc02c197611))
## [2.4.2](https://github.com/peaceiris/actions-hugo/compare/v2.4.1...v2.4.2) (2020-01-23)
### ci
* Add codecov/codecov-action@v1 (#136) ([94ce32e](https://github.com/peaceiris/actions-hugo/commit/94ce32ea1b2965037ef7bbec618476ed6ad7b9e6)), closes [#136](https://github.com/peaceiris/actions-hugo/issues/136)
* Add Hugo version dump step ([7a50ddc](https://github.com/peaceiris/actions-hugo/commit/7a50ddc6941e49c88a35080315a84a684c825347))
* Add operations-per-run 1 ([b6a7551](https://github.com/peaceiris/actions-hugo/commit/b6a75519788da01712462416009e656ec0b9cc8d))
### deps
* bump @types/jest from 24.9.0 to 24.9.1 ([2550d0e](https://github.com/peaceiris/actions-hugo/commit/2550d0ecb023988fa8061c6270a46e9d67bb84dc))
* bump @types/node from 13.1.8 to 13.5.0 ([8d85402](https://github.com/peaceiris/actions-hugo/commit/8d854027489e6b4b9130701c3a826185aca6bfae))
* bump @typescript-eslint/eslint-plugin from 2.16.0 to 2.17.0 ([66d664b](https://github.com/peaceiris/actions-hugo/commit/66d664bedd9b4a5d5004dc4023557305c4d69d97))
* bump @typescript-eslint/parser from 2.16.0 to 2.17.0 (#144) ([692ded2](https://github.com/peaceiris/actions-hugo/commit/692ded22845285c58250414c6389365f01229c49)), closes [#144](https://github.com/peaceiris/actions-hugo/issues/144)
* bump husky from 4.0.10 to 4.2.1 ([e973221](https://github.com/peaceiris/actions-hugo/commit/e9732216ceb5db53dac31f61b0bb7d03db346f3a))
* bump jest and ts-jest ([3315ca8](https://github.com/peaceiris/actions-hugo/commit/3315ca857b7ee10f6c9de622898e44583fd81132))
* bump jest-circus from 24.9.0 to 25.1.0 ([b4a0e8b](https://github.com/peaceiris/actions-hugo/commit/b4a0e8ba604f9aeccee1f7b409870b3605de8544))
* bump lint-staged from 10.0.0 to 10.0.2 ([87e38e2](https://github.com/peaceiris/actions-hugo/commit/87e38e224d4a8f50a19dc9904c0bb85f707197bd))
* bump standard-version from 7.0.1 to 7.1.0 (#145) ([699805b](https://github.com/peaceiris/actions-hugo/commit/699805b6e156fb30665896aa7c1cbbca130a1364)), closes [#145](https://github.com/peaceiris/actions-hugo/issues/145)
* update ([3317963](https://github.com/peaceiris/actions-hugo/commit/3317963a656646a401fcf4d1420b50f5908e3be0))
### docs
* Add Codecov badge ([0311892](https://github.com/peaceiris/actions-hugo/commit/0311892edd4e91aac6a95a003243e44ad3a54fe0))
* Update action execution time ([a79f520](https://github.com/peaceiris/actions-hugo/commit/a79f520addd8c317fcb9b29e8ecc4a8b0ecc43ae))
### style
* remove extra whitespace [skip ci] ([4fb2901](https://github.com/peaceiris/actions-hugo/commit/4fb290162762a7f823fcab1984966da8d8aed547))
### test
* Add fail to fetch latest due to 404 (#137) ([b55f1c8](https://github.com/peaceiris/actions-hugo/commit/b55f1c81fb24bc6149b3a7ec4cb9aa6c9596e877)), closes [#137](https://github.com/peaceiris/actions-hugo/issues/137)
## [2.4.1](https://github.com/peaceiris/actions-hugo/compare/v2.4.0...v2.4.1) (2020-01-18)
### chore
* Remove extra title [skip ci] ([48ef2db](https://github.com/peaceiris/actions-hugo/commit/48ef2dbba3c136400ffd657b8209d1b7b2b6261b))
* Update description ([8323a17](https://github.com/peaceiris/actions-hugo/commit/8323a17f96cdcbe7717e2d9ea24804c3f1b0a29f))
### ci
* Add action test workflow ([37cc539](https://github.com/peaceiris/actions-hugo/commit/37cc539052b4dffff3b468c8a25b5e414f3a7c79))
* Comment out push event [skip ci] ([d226d51](https://github.com/peaceiris/actions-hugo/commit/d226d51229e27be0121bc922b1148ef69332ed6f))
### docs
* Add Coverage Status badge [skip ci] ([3130d10](https://github.com/peaceiris/actions-hugo/commit/3130d100df2b0d10f954f9030098c2acaf553af2))
* Update execution time ([477d977](https://github.com/peaceiris/actions-hugo/commit/477d977a96079da2efe5596b1a1935ec6a6efddc))
### refactor
* main and installer (#133) ([283bc47](https://github.com/peaceiris/actions-hugo/commit/283bc47636b79858da429c7c2f16a97f4ec00638)), closes [#133](https://github.com/peaceiris/actions-hugo/issues/133)
* Use node-fetch instead of xmlhttprequest (#130) ([4642226](https://github.com/peaceiris/actions-hugo/commit/4642226db024cf8c43266df88a8a324233b19d30)), closes [#130](https://github.com/peaceiris/actions-hugo/issues/130)
### test
* Add integration testing (#131) ([386980e](https://github.com/peaceiris/actions-hugo/commit/386980e22b20d82471f64474e932614b5d22dfa9)), closes [#131](https://github.com/peaceiris/actions-hugo/issues/131)
* Add test for extended option (#134) ([6281061](https://github.com/peaceiris/actions-hugo/commit/6281061c0d9ca0dbde316f3059e931df883b7273)), closes [#134](https://github.com/peaceiris/actions-hugo/issues/134)
* Add unit testing (get-latest-version) (#132) ([442aa4d](https://github.com/peaceiris/actions-hugo/commit/442aa4dbd4b82ed161cf04f0b205abef771ca9a5)), closes [#132](https://github.com/peaceiris/actions-hugo/issues/132)
* Enable Coveralls (#129) ([66bce05](https://github.com/peaceiris/actions-hugo/commit/66bce0558afb6eaa8d8e7f1762426f9e7f53d60c)), closes [#129](https://github.com/peaceiris/actions-hugo/issues/129)
# [2.4.0](https://github.com/peaceiris/actions-hugo/compare/v2.3.2...v2.4.0) (2020-01-17)
### chore
* Add .DS_Store [skip ci] ([5ce129c](https://github.com/peaceiris/actions-hugo/commit/5ce129c278027bbd0b3d4fb967ea86543f719c7a))
* Add .gitattributes ([754a1d2](https://github.com/peaceiris/actions-hugo/commit/754a1d28dd8649e5a1151164c990298f36a093d4))
* Add standard-version [skip ci] ([dc95764](https://github.com/peaceiris/actions-hugo/commit/dc9576430f57dfabaa663af12d5dcd1210c1b155))
* Add task to autorun npm ci [skip ci] (#128) ([4331a62](https://github.com/peaceiris/actions-hugo/commit/4331a62207ee1604966b28fa32ba5d1ae1b30c6a)), closes [#128](https://github.com/peaceiris/actions-hugo/issues/128)
* Disable branch execution (#125) ([7dc0670](https://github.com/peaceiris/actions-hugo/commit/7dc067063bb67b1e59949161e3be905ed40e3c31)), closes [#125](https://github.com/peaceiris/actions-hugo/issues/125)
* fix tag push ([f21cef4](https://github.com/peaceiris/actions-hugo/commit/f21cef4446db8a2c47e78208d14acc25c3f5cf51))
* Remove .gitattributes [skip ci] ([3b68672](https://github.com/peaceiris/actions-hugo/commit/3b6867269979eef7d5bdd6de65470678a7e33604))
* Update LICENSE year ([57168bc](https://github.com/peaceiris/actions-hugo/commit/57168bc2bc3981bfabde15282e9c81dd9f5300ac))
### ci
* Add [skip ci] ([fbf2ba3](https://github.com/peaceiris/actions-hugo/commit/fbf2ba3b8ba09038d81bcd17fe9dfe0e4d7190ff))
* Add release workflow [skip ci] ([9d8553d](https://github.com/peaceiris/actions-hugo/commit/9d8553d36d52e040d2bcdd9092544fe6df5bcb91))
* Enhance tag creation ([7d9bfa0](https://github.com/peaceiris/actions-hugo/commit/7d9bfa0c1d5a9fe98246cf06033890d624a717f0))
### deps
* update (#118) ([bad8e7f](https://github.com/peaceiris/actions-hugo/commit/bad8e7f80f8fb90e4fc8297535d1c5c8102240d4)), closes [#118](https://github.com/peaceiris/actions-hugo/issues/118)
* update (#126) ([6a7231e](https://github.com/peaceiris/actions-hugo/commit/6a7231ef834e01c9eb84b15f1432d42804f7c69a)), closes [#126](https://github.com/peaceiris/actions-hugo/issues/126)
* upgrade node v12.14.1 (#119) ([cca78d8](https://github.com/peaceiris/actions-hugo/commit/cca78d865e24a18ed38b19dfc4bf0c7130c4c232)), closes [#119](https://github.com/peaceiris/actions-hugo/issues/119)
### docs
* Add back to TOC link ([490ab9b](https://github.com/peaceiris/actions-hugo/commit/490ab9b0a4d95458b58203661788d6499f27d573))
* add link to peaceiris/hugo-extended-docker ([1fa5fb2](https://github.com/peaceiris/actions-hugo/commit/1fa5fb2f2eda35bda254f126aa066972de95cfbd))
* Add new sections ([3d1e811](https://github.com/peaceiris/actions-hugo/commit/3d1e8112641c5fafdd12e5e4cf4f359ac289ce71))
* Bump Hugo version v0.62.2 ([6a39a0f](https://github.com/peaceiris/actions-hugo/commit/6a39a0f0e57bc115c411920fe91ae0144ff26b7e))
* Reindent [skip ci] ([76e22f1](https://github.com/peaceiris/actions-hugo/commit/76e22f1114f4fdfe2db25ff96bf65b4c513a942c))
* update hugo-version to v0.61.0 ([d006b81](https://github.com/peaceiris/actions-hugo/commit/d006b81d1845f59bb755a221aff0b61bbff15375))
### feat
* update deps (#104) ([5e6d8b5](https://github.com/peaceiris/actions-hugo/commit/5e6d8b50e242b4f27b9794f002a74032f4abb8f1)), closes [#104](https://github.com/peaceiris/actions-hugo/issues/104)
* update deps (#110) ([ca3c62d](https://github.com/peaceiris/actions-hugo/commit/ca3c62d21c77504550e4eba47456f9001d2c64ab)), closes [#110](https://github.com/peaceiris/actions-hugo/issues/110)
* update node 12.14.0 (#105) ([25520f7](https://github.com/peaceiris/actions-hugo/commit/25520f73cde6077d55cce09381b4121d83264fff)), closes [#105](https://github.com/peaceiris/actions-hugo/issues/105)
### test
* Add Docker container for testing [skip ci] ([7496c44](https://github.com/peaceiris/actions-hugo/commit/7496c44053ad339cde271140b13a6c3e5385f596))

View File

@@ -1,19 +1,28 @@
FROM golang:1.12.7-buster ARG NODE_VERSION
LABEL "com.github.actions.name"="Hugo action" FROM node:${NODE_VERSION}-buster-slim
LABEL "com.github.actions.description"="GitHub Actions for Hugo extended and Hugo Modules"
LABEL "com.github.actions.icon"="package"
LABEL "com.github.actions.color"="yellow"
LABEL "repository"="https://github.com/peaceiris/actions-hugo" SHELL ["/bin/bash", "-l", "-c"]
LABEL "homepage"="https://github.com/peaceiris/actions-hugo"
LABEL "maintainer"="peaceiris"
ENV HUGO_VERSION='0.56.0' RUN apt-get update && \
ENV HUGO_URL='https://github.com/gohugoio/hugo.git' apt-get install -y --no-install-recommends \
build-essential \
libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev autoconf \
ca-certificates \
wget && \
rm -rf /var/lib/apt/lists/*
RUN git clone ${HUGO_URL} -b v${HUGO_VERSION} --depth 1 /hugo && \ WORKDIR /git
cd /hugo && \ ENV GIT_VERSION="2.25.0"
go install --tags extended 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" && \
cd "./git-${GIT_VERSION}" && \
make configure && \
./configure --prefix=/usr && \
make all && \
make install
ENTRYPOINT [ "/go/bin/hugo" ] WORKDIR /repo
CMD [ "bash" ]

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2019 Shohei Ueda (peaceiris) Copyright (c) 2020 Shohei Ueda (peaceiris)
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
cmd := "bash"
msg := ""
IMAGE_NAME := actions_hugo_dev:latest
NODE_VERSION := $(shell cat ./.nvmrc)
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --build-arg NODE_VERSION=$(NODE_VERSION)
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/root/.gitconfig $(IMAGE_NAME)
.PHONY: build
build:
$(DOCKER_BUILD)
.PHONY: run
run:
$(DOCKER_RUN) $(cmd)
.PHONY: test
test:
$(DOCKER_RUN) npm test
.PHONY: commit
commit:
$(DOCKER_RUN) git commit -m "$(msg)"

238
README.md
View File

@@ -1,68 +1,242 @@
[![license](https://img.shields.io/github/license/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/blob/master/LICENSE) [![license](https://img.shields.io/github/license/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/blob/master/LICENSE)
[![release](https://img.shields.io/github/release/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases/latest) [![release](https://img.shields.io/github/release/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases/latest)
[![GitHub release date](https://img.shields.io/github/release-date/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases) [![GitHub release date](https://img.shields.io/github/release-date/peaceiris/actions-hugo.svg)](https://github.com/peaceiris/actions-hugo/releases)
![Test](https://github.com/peaceiris/actions-hugo/workflows/Test/badge.svg?branch=master&event=push)
[![CodeFactor](https://www.codefactor.io/repository/github/peaceiris/actions-hugo/badge)](https://www.codefactor.io/repository/github/peaceiris/actions-hugo)
[![codecov](https://codecov.io/gh/peaceiris/actions-hugo/branch/master/graph/badge.svg)](https://codecov.io/gh/peaceiris/actions-hugo)
[![Release Feed](https://img.shields.io/badge/release-feed-yellow)](https://github.com/peaceiris/actions-hugo/releases.atom)
<img width="400" alt="GitHub Actions for Hugo extended" src="./images/ogp.svg"> <img width="400" alt="GitHub Actions for Hugo" src="./images/ogp.svg">
## GitHub Actions for Hugo extended and Modules ## GitHub Actions for Hugo
- [gohugoio/hugo: The worlds fastest framework for building websites.](https://github.com/gohugoio/hugo) - [gohugoio/hugo: The worlds fastest framework for building websites.](https://github.com/gohugoio/hugo)
This **Hugo Setup Action** can install **Hugo** to a virtual machine of **GitHub Actions**.
**Hugo extended** version, **Hugo Modules**, Linux (Ubuntu), macOS, and Windows are supported.
From `v2`, this Hugo Setup Action has migrated to a JavaScript (TypeScript) action.
We no longer build or pull a Hugo docker image.
Thanks to this change, we can complete this action in less than a few seconds.
(A docker base action was taking about 1 min or more execution time to build and pull a docker image.)
| OS (runs-on) | ubuntu-18.04 | macos-latest | windows-2019 |
|---|:---:|:---:|:---:|
| Support | ✅️ | ✅️ | ✅️ |
| Hugo type | Hugo Extended | Hugo Modules | Latest Hugo |
|---|:---:|:---:|:---:|
| Support | ✅️ | ✅️ | ✅️ |
## Table of Contents
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Getting started](#getting-started)
- [⭐️ Create your workflow](#%EF%B8%8F-create-your-workflow)
- [Options](#options)
- [⭐️ Use Hugo extended](#%EF%B8%8F-use-hugo-extended)
- [⭐️ Use the latest version of Hugo](#%EF%B8%8F-use-the-latest-version-of-hugo)
- [Tips](#tips)
- [⭐️ Read Hugo version from file](#%EF%B8%8F-read-hugo-version-from-file)
- [CHANGELOG](#changelog)
- [License](#license)
- [About Maintainer](#about-maintainer)
- [Maintainer Notes](#maintainer-notes)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## Getting started ## Getting started
### Create `main.workflow` ### ⭐️ Create your workflow
An example with [GitHub Actions for deploying to GitHub Pages with Static Site Generators] An example workflow `.github/workflows/gh-pages.yml` with [GitHub Actions for GitHub Pages]
[GitHub Actions for deploying to GitHub Pages with Static Site Generators]: https://github.com/peaceiris/actions-gh-pages [GitHub Actions for GitHub Pages]: https://github.com/peaceiris/actions-gh-pages
[![peaceiris/actions-gh-pages - GitHub](https://gh-card.dev/repos/peaceiris/actions-gh-pages.svg?fullname)](https://github.com/peaceiris/actions-gh-pages)
![peaceiris/actions-hugo latest version](https://img.shields.io/github/release/peaceiris/actions-hugo.svg?label=peaceiris%2Factions-hugo) ![peaceiris/actions-hugo latest version](https://img.shields.io/github/release/peaceiris/actions-hugo.svg?label=peaceiris%2Factions-hugo)
![peaceiris/actions-gh-pages latest version](https://img.shields.io/github/release/peaceiris/actions-gh-pages.svg?label=peaceiris%2Factions-gh-pages) ![peaceiris/actions-gh-pages latest version](https://img.shields.io/github/release/peaceiris/actions-gh-pages.svg?label=peaceiris%2Factions-gh-pages)
```hcl ```yaml
workflow "GitHub Pages" { name: github pages
on = "push"
resolves = ["deploy"]
}
action "is-branch-master" { on:
uses = "actions/bin/filter@master" push:
args = "branch master" branches:
} - master
action "build" { jobs:
needs = "is-branch-master" build-deploy:
uses = "peaceiris/actions-hugo@v0.56.0-mod" runs-on: ubuntu-18.04
args = ["--gc", "--minify", "--cleanDestinationDir"] steps:
} - uses: actions/checkout@v1
# with:
# submodules: true
action "deploy" { - name: Setup Hugo
needs = "build" uses: peaceiris/actions-hugo@v2
uses = "peaceiris/actions-gh-pages@v1.0.1" with:
env = { hugo-version: '0.62.2'
PUBLISH_DIR = "./public" # extended: true
PUBLISH_BRANCH = "gh-pages"
} - name: Build
secrets = ["ACTIONS_DEPLOY_KEY"] run: hugo --minify
}
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
``` ```
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>
## Options
### ⭐️ Use Hugo extended
Set `extended: true` to use a Hugo extended version.
```yaml
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.62.2'
extended: true
```
### ⭐️ Use the latest version of Hugo
Set `hugo-version: 'latest'` to use the latest version of Hugo.
```yaml
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
```
This action fetches the latest version of Hugo by [hugo | Homebrew Formulae](https://formulae.brew.sh/formula/hugo)
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>
## Tips
### ⭐️ Read Hugo version from file
How to sync a Hugo version between a Docker Compose and a GitHub Actions workflow via `.env` file.
Write a `HUGO_VERSION` to the `.env` file like the following and push it to a remote branch.
```sh
HUGO_VERSION=0.62.2
```
Next, add a step to read a Hugo version from the `.env` file.
```yaml
- name: Read .env
id: hugo-version
run: |
. ./.env
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '${{ steps.hugo-version.outputs.HUGO_VERSION }}'
extended: true
```
Here is a `docker-compose.yml` example.
```yaml
version: '3'
services:
hugo:
container_name: hugo
image: "peaceiris/hugo:v${HUGO_VERSION}"
# image: peaceiris/hugo:v${HUGO_VERSION}-mod # Hugo Modules
ports:
- 1313:1313
volumes:
- ${PWD}:/src
command:
- server
- --bind=0.0.0.0
- --buildDrafts
```
The alpine base Hugo Docker image is provided on the following repository.
> [peaceiris/hugo-extended-docker: Hugo alpine base Docker image (Hugo extended and Hugo Modules)](https://github.com/peaceiris/hugo-extended-docker)
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>
## CHANGELOG
- [CHANGELOG.md](CHANGELOG.md)
## License ## License
[MIT License - peaceiris/actions-hugo] - [MIT License - peaceiris/actions-hugo]
[MIT License - peaceiris/actions-hugo]: https://github.com/peaceiris/actions-hugo/blob/master/LICENSE [MIT License - peaceiris/actions-hugo]: https://github.com/peaceiris/actions-hugo/blob/master/LICENSE
## About the author ## About Maintainer
- [peaceiris's homepage](https://peaceiris.com/) - [peaceiris homepage](https://peaceiris.com/)
<a href="https://www.patreon.com/peaceiris"><img src="./images/patreon.jpg" alt="peaceiris - Patreon" width="150px"></a>
## Maintainer Notes
Run `npm` and `git commit` commands on a container.
**On Host**
```sh
# Docker
make build
make run
make run cmd="env"
make test
make commit msg="chore: Add Makefile"
# Release
./release.sh
```
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>

1
__tests__/data/brew.json Normal file
View File

@@ -0,0 +1 @@
{"name":"hugo","full_name":"hugo","oldname":null,"aliases":[],"versioned_formulae":[],"desc":"Configurable static site generator","homepage":"https://gohugo.io/","versions":{"stable":"0.62.2","devel":null,"head":"HEAD","bottle":true},"revision":0,"version_scheme":0,"bottle":{"stable":{"rebuild":0,"cellar":":any_skip_relocation","prefix":"/usr/local","root_url":"https://homebrew.bintray.com/bottles","files":{"catalina":{"url":"https://homebrew.bintray.com/bottles/hugo-0.62.2.catalina.bottle.tar.gz","sha256":"354545c2c125e01a8860f83577fb4218d585fa8d38cd7f51e4228a149347fbcf"},"mojave":{"url":"https://homebrew.bintray.com/bottles/hugo-0.62.2.mojave.bottle.tar.gz","sha256":"9645b64fe6290c4c3b7591ef21139247f0fad6e49da1edd01665b3130a8f1d1a"},"high_sierra":{"url":"https://homebrew.bintray.com/bottles/hugo-0.62.2.high_sierra.bottle.tar.gz","sha256":"0ede4cbcc7536dd6b05107376637840356062273d734b4106be98b3d1732d50c"}}}},"keg_only":false,"bottle_disabled":false,"options":[],"build_dependencies":["go"],"dependencies":[],"recommended_dependencies":[],"optional_dependencies":[],"uses_from_macos":[],"requirements":[],"conflicts_with":[],"caveats":null,"installed":[],"linked_keg":null,"pinned":false,"outdated":false,"analytics":{"install":{"30d":{"hugo":24278,"hugo --HEAD":30},"90d":{"hugo":68639,"hugo --HEAD":80},"365d":{"hugo":223748,"hugo --HEAD":321}},"install_on_request":{"30d":{"hugo":23621,"hugo --HEAD":27},"90d":{"hugo":66676,"hugo --HEAD":74},"365d":{"hugo":215985,"hugo --HEAD":305}},"build_error":{"30d":{"hugo":0}}}}

958
__tests__/data/github.json Normal file
View File

@@ -0,0 +1,958 @@
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/22603992",
"assets_url": "https://api.github.com/repos/gohugoio/hugo/releases/22603992/assets",
"upload_url": "https://uploads.github.com/repos/gohugoio/hugo/releases/22603992/assets{?name,label}",
"html_url": "https://github.com/gohugoio/hugo/releases/tag/v0.62.2",
"id": 22603992,
"node_id": "MDc6UmVsZWFzZTIyNjAzOTky",
"tag_name": "v0.62.2",
"target_commitish": "master",
"name": "v0.62.2",
"draft": false,
"author": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"prerelease": false,
"created_at": "2020-01-05T18:50:35Z",
"published_at": "2020-01-05T19:35:16Z",
"assets": [
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152845",
"id": 17152845,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODQ1",
"name": "hugo_0.62.2_checksums.txt",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "text/plain; charset=utf-8",
"state": "uploaded",
"size": 2552,
"download_count": 328,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:47Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_checksums.txt"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152874",
"id": 17152874,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODc0",
"name": "hugo_0.62.2_DragonFlyBSD-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 13188250,
"download_count": 25,
"created_at": "2020-01-05T18:58:52Z",
"updated_at": "2020-01-05T18:58:52Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_DragonFlyBSD-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152867",
"id": 17152867,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODY3",
"name": "hugo_0.62.2_FreeBSD-32bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12223449,
"download_count": 10,
"created_at": "2020-01-05T18:58:50Z",
"updated_at": "2020-01-05T18:58:53Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_FreeBSD-32bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152850",
"id": 17152850,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODUw",
"name": "hugo_0.62.2_FreeBSD-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 13195767,
"download_count": 38,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:48Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_FreeBSD-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152869",
"id": 17152869,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODY5",
"name": "hugo_0.62.2_FreeBSD-ARM.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12336796,
"download_count": 12,
"created_at": "2020-01-05T18:58:50Z",
"updated_at": "2020-01-05T18:58:51Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_FreeBSD-ARM.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152855",
"id": 17152855,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODU1",
"name": "hugo_0.62.2_Linux-32bit.deb",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/x-debian-package",
"state": "uploaded",
"size": 12226680,
"download_count": 37,
"created_at": "2020-01-05T18:58:48Z",
"updated_at": "2020-01-05T18:58:55Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-32bit.deb"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152849",
"id": 17152849,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODQ5",
"name": "hugo_0.62.2_Linux-32bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12228575,
"download_count": 31,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:48Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-32bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152858",
"id": 17152858,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODU4",
"name": "hugo_0.62.2_Linux-64bit.deb",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/x-debian-package",
"state": "uploaded",
"size": 13182646,
"download_count": 2260,
"created_at": "2020-01-05T18:58:49Z",
"updated_at": "2020-01-05T18:58:49Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-64bit.deb"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152851",
"id": 17152851,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODUx",
"name": "hugo_0.62.2_Linux-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 13192573,
"download_count": 5752,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:48Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152856",
"id": 17152856,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODU2",
"name": "hugo_0.62.2_Linux-ARM.deb",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/x-debian-package",
"state": "uploaded",
"size": 12324130,
"download_count": 47,
"created_at": "2020-01-05T18:58:48Z",
"updated_at": "2020-01-05T18:58:49Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-ARM.deb"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152854",
"id": 17152854,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODU0",
"name": "hugo_0.62.2_Linux-ARM.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12330563,
"download_count": 35,
"created_at": "2020-01-05T18:58:48Z",
"updated_at": "2020-01-05T18:58:48Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-ARM.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152857",
"id": 17152857,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODU3",
"name": "hugo_0.62.2_Linux-ARM64.deb",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/x-debian-package",
"state": "uploaded",
"size": 12113228,
"download_count": 38,
"created_at": "2020-01-05T18:58:49Z",
"updated_at": "2020-01-05T18:58:49Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-ARM64.deb"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152843",
"id": 17152843,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODQz",
"name": "hugo_0.62.2_Linux-ARM64.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12119126,
"download_count": 63,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:47Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-ARM64.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152873",
"id": 17152873,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODcz",
"name": "hugo_0.62.2_macOS-32bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12805086,
"download_count": 25,
"created_at": "2020-01-05T18:58:52Z",
"updated_at": "2020-01-05T18:58:52Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_macOS-32bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152868",
"id": 17152868,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODY4",
"name": "hugo_0.62.2_macOS-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 13765882,
"download_count": 479,
"created_at": "2020-01-05T18:58:50Z",
"updated_at": "2020-01-05T18:58:51Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_macOS-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152846",
"id": 17152846,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODQ2",
"name": "hugo_0.62.2_NetBSD-32bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12206852,
"download_count": 8,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:47Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_NetBSD-32bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152863",
"id": 17152863,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODYz",
"name": "hugo_0.62.2_NetBSD-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 13186059,
"download_count": 12,
"created_at": "2020-01-05T18:58:49Z",
"updated_at": "2020-01-05T18:58:50Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_NetBSD-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152870",
"id": 17152870,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODcw",
"name": "hugo_0.62.2_NetBSD-ARM.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12325194,
"download_count": 8,
"created_at": "2020-01-05T18:58:51Z",
"updated_at": "2020-01-05T18:58:52Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_NetBSD-ARM.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152861",
"id": 17152861,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODYx",
"name": "hugo_0.62.2_OpenBSD-32bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12208022,
"download_count": 11,
"created_at": "2020-01-05T18:58:49Z",
"updated_at": "2020-01-05T18:58:50Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_OpenBSD-32bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152871",
"id": 17152871,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODcx",
"name": "hugo_0.62.2_OpenBSD-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 13183077,
"download_count": 39,
"created_at": "2020-01-05T18:58:51Z",
"updated_at": "2020-01-05T18:58:52Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_OpenBSD-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152864",
"id": 17152864,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODY0",
"name": "hugo_0.62.2_OpenBSD-ARM.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 12322903,
"download_count": 9,
"created_at": "2020-01-05T18:58:50Z",
"updated_at": "2020-01-05T18:58:50Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_OpenBSD-ARM.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152862",
"id": 17152862,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODYy",
"name": "hugo_0.62.2_Windows-32bit.zip",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/zip",
"state": "uploaded",
"size": 12221573,
"download_count": 154,
"created_at": "2020-01-05T18:58:49Z",
"updated_at": "2020-01-05T18:58:50Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Windows-32bit.zip"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152865",
"id": 17152865,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODY1",
"name": "hugo_0.62.2_Windows-64bit.zip",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/zip",
"state": "uploaded",
"size": 13265631,
"download_count": 7902,
"created_at": "2020-01-05T18:58:50Z",
"updated_at": "2020-01-05T18:58:50Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Windows-64bit.zip"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152859",
"id": 17152859,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODU5",
"name": "hugo_extended_0.62.2_Linux-64bit.deb",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/x-debian-package",
"state": "uploaded",
"size": 14137254,
"download_count": 855,
"created_at": "2020-01-05T18:58:49Z",
"updated_at": "2020-01-05T18:58:49Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_extended_0.62.2_Linux-64bit.deb"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152844",
"id": 17152844,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODQ0",
"name": "hugo_extended_0.62.2_Linux-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 14145652,
"download_count": 5218,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:47Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_extended_0.62.2_Linux-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152852",
"id": 17152852,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODUy",
"name": "hugo_extended_0.62.2_macOS-64bit.tar.gz",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 14784660,
"download_count": 628,
"created_at": "2020-01-05T18:58:47Z",
"updated_at": "2020-01-05T18:58:48Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_extended_0.62.2_macOS-64bit.tar.gz"
},
{
"url": "https://api.github.com/repos/gohugoio/hugo/releases/assets/17152853",
"id": 17152853,
"node_id": "MDEyOlJlbGVhc2VBc3NldDE3MTUyODUz",
"name": "hugo_extended_0.62.2_Windows-64bit.zip",
"label": "",
"uploader": {
"login": "bep",
"id": 394382,
"node_id": "MDQ6VXNlcjM5NDM4Mg==",
"avatar_url": "https://avatars1.githubusercontent.com/u/394382?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bep",
"html_url": "https://github.com/bep",
"followers_url": "https://api.github.com/users/bep/followers",
"following_url": "https://api.github.com/users/bep/following{/other_user}",
"gists_url": "https://api.github.com/users/bep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bep/subscriptions",
"organizations_url": "https://api.github.com/users/bep/orgs",
"repos_url": "https://api.github.com/users/bep/repos",
"events_url": "https://api.github.com/users/bep/events{/privacy}",
"received_events_url": "https://api.github.com/users/bep/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/zip",
"state": "uploaded",
"size": 30553922,
"download_count": 3681,
"created_at": "2020-01-05T18:58:48Z",
"updated_at": "2020-01-05T18:58:49Z",
"browser_download_url": "https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_extended_0.62.2_Windows-64bit.zip"
}
],
"tarball_url": "https://api.github.com/repos/gohugoio/hugo/tarball/v0.62.2",
"zipball_url": "https://api.github.com/repos/gohugoio/hugo/zipball/v0.62.2",
"body": "The main driving force behind these patch releases in the new year has been getting a good story with [portable links](https://github.com/bep/portable-hugo-links/) between GitHub and Hugo, using the new render hooks introduced in [Hugo 0.62.0](https://gohugo.io/news/0.62.0-relnotes/). And all was mostly well until a Hugo user asked about anchor links. Which is, when you look into it, a slightly sad Markdown story. They have been [talking about anchors in Markdown](https://talk.commonmark.org/t/anchors-in-markdown/247) over at the CommonMark forum for the last six years, but it has come to nothing. The current situation is that some Markdown engines support the `{#anchorName}` attribute syntax (Hugo's Goldmark does, GitHub does not) and for those that support auto-generation of IDs, the implementation often varies. And this makes for poor portability.\r\n\r\nTo improve this, Hugo has now reverse-engineered GitHub's implementation and made that the default strategy for generation or header IDs. We understand that this isn't everyone's cup of tea, so you can [configure the behaviour](https://gohugo.io/getting-started/configuration-markup#goldmark) to be one of `github`, `github-ascii` (some client-libraries have Unicode issues) or `blackfriday` (which will match how it behaved before Hugo 0.60).\r\n\r\n* hugolib: Fix relative .Page.GetPage from bundle [196a9df5](https://github.com/gohugoio/hugo/commit/196a9df585c4744e3280f37c1c24e469fce14b8c) [@bep](https://github.com/bep) [#6705](https://github.com/gohugoio/hugo/issues/6705)\r\n* markup/goldmark: Adjust auto ID space handling [9b6e6146](https://github.com/gohugoio/hugo/commit/9b6e61464b09ffe3423fb8d7c72bddb7a9ed5b98) [@bep](https://github.com/bep) [#6710](https://github.com/gohugoio/hugo/issues/6710)\r\n* docs: Document the new autoHeadingIDType setting [d62ede8e](https://github.com/gohugoio/hugo/commit/d62ede8e9e5883e7ebb023e49b82f07b45edc1c7) [@bep](https://github.com/bep) [#6707](https://github.com/gohugoio/hugo/issues/6707)[#6616](https://github.com/gohugoio/hugo/issues/6616)\r\n* docs: Regenerate docshelper [81b7e48a](https://github.com/gohugoio/hugo/commit/81b7e48a55092203aeee8785799e6fed3928760e) [@bep](https://github.com/bep) [#6707](https://github.com/gohugoio/hugo/issues/6707)[#6616](https://github.com/gohugoio/hugo/issues/6616)\r\n* markup/goldmark: Add an optional Blackfriday auto ID strategy [16e7c112](https://github.com/gohugoio/hugo/commit/16e7c1120346bd853cf6510ffac8e94824bf2c7f) [@bep](https://github.com/bep) [#6707](https://github.com/gohugoio/hugo/issues/6707)\r\n* markup/goldmark: Make the autoID type config a string [8f071fc1](https://github.com/gohugoio/hugo/commit/8f071fc159ce9a0fc0ea14a73bde8f299bedd109) [@bep](https://github.com/bep) [#6707](https://github.com/gohugoio/hugo/issues/6707)\r\n* markup/goldmark: Simplify code [5ee1f087](https://github.com/gohugoio/hugo/commit/5ee1f0876f3ec8b79d6305298185dc821ead2d28) [@bep](https://github.com/bep) \r\n* markup/goldmark: Make auto IDs GitHub compatible [a82d2700](https://github.com/gohugoio/hugo/commit/a82d2700fcc772aada15d65b8f76913ca23f7404) [@bep](https://github.com/bep) [#6616](https://github.com/gohugoio/hugo/issues/6616)\r\n\r\n\r\n\r\n\r\n"
}

View File

@@ -0,0 +1,64 @@
import {getURL, getLatestVersion} from '../src/get-latest-version';
import nock from 'nock';
import {FetchError} from 'node-fetch';
import {Tool} from '../src/constants';
import jsonTestBrew from './data/brew.json';
import jsonTestGithub from './data/github.json';
beforeEach(() => {
jest.resetModules();
});
afterEach(() => {
nock.cleanAll();
});
describe('getURL()', () => {
test('return expected URL', () => {
const urlBrewExpected = `https://formulae.brew.sh/api/formula/${Tool.Repo}.json`;
const urlBrew: string = getURL(Tool.Org, Tool.Repo, 'brew');
expect(urlBrew).toMatch(urlBrewExpected);
const urlGithubExpected = `https://api.github.com/repos/${Tool.Org}/${Tool.Repo}/releases/latest`;
const urlGithub: string = getURL(Tool.Org, Tool.Repo, 'github');
expect(urlGithub).toMatch(urlGithubExpected);
});
});
describe('getLatestVersion()', () => {
test('return latest version via brew', async () => {
nock('https://formulae.brew.sh')
.get(`/api/formula/${Tool.Repo}.json`)
.reply(200, jsonTestBrew);
const versionLatest: string = await getLatestVersion(
Tool.Org,
Tool.Repo,
'brew'
);
expect(versionLatest).toMatch(Tool.TestVersionLatest);
});
test('return latest version via GitHub', async () => {
nock('https://api.github.com')
.get(`/repos/${Tool.Org}/${Tool.Repo}/releases/latest`)
.reply(200, jsonTestGithub);
const versionLatest: string = await getLatestVersion(
Tool.Org,
Tool.Repo,
'github'
);
expect(versionLatest).toMatch(Tool.TestVersionLatest);
});
test('return exception 404', async () => {
nock('https://formulae.brew.sh')
.get(`/api/formula/${Tool.Repo}.json`)
.reply(404);
await expect(
getLatestVersion(Tool.Org, Tool.Repo, 'brew')
).rejects.toThrowError(FetchError);
});
});

15
__tests__/get-os.test.ts Normal file
View File

@@ -0,0 +1,15 @@
import getOS from '../src/get-os';
describe('getOS', () => {
test('test', () => {
expect(getOS('linux')).toBe('Linux');
expect(getOS('darwin')).toBe('macOS');
expect(getOS('win32')).toBe('Windows');
});
test('test exception', () => {
expect(() => {
getOS('centos');
}).toThrowError('centos is not supported');
});
});

19
__tests__/get-url.test.ts Normal file
View File

@@ -0,0 +1,19 @@
import getURL from '../src/get-url';
describe('getURL()', () => {
test('test', () => {
const baseURL =
'https://github.com/gohugoio/hugo/releases/download/v0.58.2';
const urlLinux = `${baseURL}/hugo_0.58.2_Linux-64bit.tar.gz`;
const urlLinuxExtended = `${baseURL}/hugo_extended_0.58.2_Linux-64bit.tar.gz`;
const urlMacOS = `${baseURL}/hugo_0.58.2_macOS-64bit.tar.gz`;
const urlWindows = `${baseURL}/hugo_0.58.2_Windows-64bit.zip`;
expect(getURL('Linux', 'false', '0.58.2')).toBe(urlLinux);
expect(getURL('Linux', 'true', '0.58.2')).not.toBe(urlLinux);
expect(getURL('MyOS', 'false', '0.58.2')).not.toBe(urlLinux);
expect(getURL('Linux', 'false', '0.58.1')).not.toBe(urlLinux);
expect(getURL('Linux', 'true', '0.58.2')).toBe(urlLinuxExtended);
expect(getURL('macOS', 'false', '0.58.2')).toBe(urlMacOS);
expect(getURL('Windows', 'false', '0.58.2')).toBe(urlWindows);
});
});

98
__tests__/main.test.ts Normal file
View File

@@ -0,0 +1,98 @@
import * as main from '../src/main';
import * as io from '@actions/io';
import path from 'path';
import nock from 'nock';
import {Tool, Action} from '../src/constants';
import {FetchError} from 'node-fetch';
import jsonTestBrew from './data/brew.json';
// import jsonTestGithub from './data/github.json';
jest.setTimeout(30000);
describe('Integration testing run()', () => {
beforeEach(() => {
jest.resetModules();
});
afterEach(async () => {
const workDir = path.join(`${process.env.HOME}`, Action.WorkDirName);
await io.rmRF(workDir);
delete process.env['INPUT_HUGO-VERSION'];
nock.cleanAll();
});
test('succeed in installing a custom version', async () => {
const testVersion = Tool.TestVersionSpec;
process.env['INPUT_HUGO-VERSION'] = testVersion;
const result: main.ActionResult = await main.run();
expect(result.exitcode).toBe(0);
expect(result.output).toMatch(`Hugo Static Site Generator v${testVersion}`);
});
test('succeed in installing a custom extended version', async () => {
const testVersion = Tool.TestVersionSpec;
process.env['INPUT_HUGO-VERSION'] = testVersion;
process.env['INPUT_EXTENDED'] = 'true';
const result: main.ActionResult = await main.run();
expect(result.exitcode).toBe(0);
expect(result.output).toMatch(`Hugo Static Site Generator v${testVersion}`);
expect(result.output).toMatch(`extended`);
});
test('succeed in installing the latest version', async () => {
const testVersion = 'latest';
process.env['INPUT_HUGO-VERSION'] = testVersion;
nock('https://formulae.brew.sh')
.get(`/api/formula/${Tool.Repo}.json`)
.reply(200, jsonTestBrew);
const result: main.ActionResult = await main.run();
expect(result.exitcode).toBe(0);
expect(result.output).toMatch(
`Hugo Static Site Generator v${Tool.TestVersionLatest}`
);
});
test('succeed in installing the latest extended version', async () => {
const testVersion = 'latest';
process.env['INPUT_HUGO-VERSION'] = testVersion;
process.env['INPUT_EXTENDED'] = 'true';
nock('https://formulae.brew.sh')
.get(`/api/formula/${Tool.Repo}.json`)
.reply(200, jsonTestBrew);
const result: main.ActionResult = await main.run();
expect(result.exitcode).toBe(0);
expect(result.output).toMatch(
`Hugo Static Site Generator v${Tool.TestVersionLatest}`
);
expect(result.output).toMatch(`extended`);
});
test('fail to install the latest version due to 404 of brew', async () => {
process.env['INPUT_HUGO-VERSION'] = 'latest';
nock('https://formulae.brew.sh')
.get(`/api/formula/${Tool.Repo}.json`)
.reply(404);
await expect(main.run()).rejects.toThrowError(FetchError);
});
});
describe('showVersion()', () => {
let result: main.ActionResult = {
exitcode: 0,
output: ''
};
test('return version', async () => {
result = await main.showVersion('git', ['--version']);
expect(result.exitcode).toBe(0);
expect(result.output).toMatch(/git version/);
});
test('return not found', async () => {
await expect(
main.showVersion('gitgit', ['--version'])
).rejects.toThrowError(Error);
});
});

18
action.yml Normal file
View File

@@ -0,0 +1,18 @@
name: 'Hugo setup'
description: 'GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended and Hugo Modules are supported.'
author: 'peaceiris'
inputs:
hugo-version:
description: 'The Hugo version to download (if necessary) and use. Example: 0.58.2'
required: false
default: 'latest'
extended:
description: 'Download (if necessary) and use Hugo extended version. Example: true'
required: false
default: 'false'
runs:
using: 'node12'
main: 'lib/index.js'
branding:
icon: 'package'
color: 'yellow'

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

11
jest.config.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true
}

6478
lib/index.js Normal file

File diff suppressed because it is too large Load Diff

11752
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

75
package.json Normal file
View File

@@ -0,0 +1,75 @@
{
"name": "actions-hugo",
"version": "2.4.4",
"description": "GitHub Actions for Hugo",
"main": "lib/index.js",
"scripts": {
"lint": "eslint ./{src,__tests__}/**/*.ts",
"lint:fix": "eslint --fix ./{src,__tests__}/**/*.ts",
"test": "jest --coverage --verbose",
"build": "ncc build ./src/index.ts -o lib",
"tsc": "tsc",
"format": "prettier --write **/*.ts",
"format:check": "prettier --check **/*.ts",
"release": "standard-version",
"update-deps": "(git diff 'HEAD@{1}' --name-only | grep 'package-lock.json' > /dev/null) && npm ci || :"
},
"husky": {
"skipCI": true,
"hooks": {
"pre-commit": "lint-staged",
"post-merge": "npm run update-deps; git remote prune origin"
}
},
"lint-staged": {
"src/**/*.ts": [
"prettier --check",
"eslint",
"jest --bail --findRelatedTests"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/peaceiris/actions-hugo.git"
},
"keywords": [
"GitHub",
"Actions",
"JavaScript",
"TypeScript",
"Hugo",
"Setup"
],
"author": "peaceiris",
"license": "MIT",
"bugs": {
"url": "https://github.com/peaceiris/actions-hugo/issues"
},
"homepage": "https://github.com/peaceiris/actions-hugo#readme",
"dependencies": {
"@actions/core": "^1.2.2",
"@actions/exec": "^1.0.3",
"@actions/io": "^1.0.2",
"@actions/tool-cache": "^1.3.1",
"node-fetch": "^2.6.0"
},
"devDependencies": {
"@types/jest": "^25.1.0",
"@types/node": "^13.5.0",
"@types/node-fetch": "^2.5.4",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"@zeit/ncc": "^0.21.0",
"eslint": "^6.8.0",
"eslint-plugin-jest": "^23.6.0",
"husky": "^4.2.1",
"jest": "^25.1.0",
"jest-circus": "^25.1.0",
"lint-staged": "^10.0.3",
"nock": "^11.7.2",
"prettier": "1.19.1",
"standard-version": "^7.1.0",
"ts-jest": "^25.0.0",
"typescript": "^3.7.5"
}
}

48
release.sh Executable file
View File

@@ -0,0 +1,48 @@
#!/usr/bin/env bash
# fail on unset variables and command errors
set -eu -o pipefail # -x: is for debugging
if [ "$(git branch --show-current)" != "master" ]; then
echo "$0: Current branch is not master" 1>&2
exit 1
fi
RELEASE_TYPE_LIST="prerelease prepatch patch preminor minor major premajor"
if command -v fzf; then
RELEASE_TYPE=$(echo "${RELEASE_TYPE_LIST}" | tr ' ' '\n' | fzf --layout=reverse)
else
select sel in ${RELEASE_TYPE_LIST}; do
RELEASE_TYPE="${sel}"
break
done
fi
echo "$0: Create ${RELEASE_TYPE} release, continue? (y/n)"
read -r res
if [ "${res}" = "n" ]; then
echo "$0: Stop script"
exit 0
fi
git fetch origin
git pull origin master
git tag -d v2 || true
git pull origin --tags
npm ci
mkdir ./lib
npm run build
git add ./lib/index.js
git commit -m "chore(release): Add build assets"
npm run release -- --release-as "${RELEASE_TYPE}" --preset eslint
git rm ./lib/index.js
rm -rf ./lib
git commit -m "chore(release): Remove build assets [skip ci]"
TAG_NAME="v$(jq -r '.version' ./package.json)"
git push origin master
git push origin "${TAG_NAME}"

14
src/constants.ts Normal file
View File

@@ -0,0 +1,14 @@
export enum Tool {
Name = 'Hugo',
Org = 'gohugoio',
Repo = 'hugo',
CmdName = 'hugo',
CmdOptVersion = 'version',
TestVersionLatest = '0.62.2',
TestVersionSpec = '0.61.0'
}
export enum Action {
WorkDirName = 'actions_hugo',
TempDirName = '_temp'
}

30
src/get-latest-version.ts Normal file
View File

@@ -0,0 +1,30 @@
import fetch from 'node-fetch';
export function getURL(org: string, repo: string, api: string): string {
let url = '';
if (api === 'brew') {
url = `https://formulae.brew.sh/api/formula/${repo}.json`;
} else if (api === 'github') {
url = `https://api.github.com/repos/${org}/${repo}/releases/latest`;
}
return url;
}
export async function getLatestVersion(
org: string,
repo: string,
api: string
): Promise<string> {
const url = getURL(org, repo, api);
const response = await fetch(url);
const json = await response.json();
let latestVersion = '';
if (api === 'brew') {
latestVersion = json.versions.stable;
} else if (api === 'github') {
latestVersion = json.tag_name;
}
return latestVersion;
}

11
src/get-os.ts Normal file
View File

@@ -0,0 +1,11 @@
export default function getOS(platform: string): string {
if (platform === 'linux') {
return 'Linux';
} else if (platform === 'darwin') {
return 'macOS';
} else if (platform === 'win32') {
return 'Windows';
} else {
throw new Error(`${platform} is not supported`);
}
}

29
src/get-url.ts Normal file
View File

@@ -0,0 +1,29 @@
export default function getURL(
os: string,
extended: string,
version: string
): string {
const extendedStr = (extended: string): string => {
if (extended === 'true') {
return 'extended_';
} else {
return '';
// } else {
// throw new Error(`Invalid input (extended): ${extended}`);
}
};
const ext = (os: string): string => {
if (os === 'Windows') {
return 'zip';
} else {
return 'tar.gz';
}
};
const hugoName = `hugo_${extendedStr(extended)}${version}_${os}-64bit`;
const baseURL = 'https://github.com/gohugoio/hugo/releases/download';
const url = `${baseURL}/v${version}/${hugoName}.${ext(os)}`;
return url;
}

8
src/index.ts Normal file
View File

@@ -0,0 +1,8 @@
import * as core from '@actions/core';
import * as main from './main';
try {
main.run();
} catch (e) {
core.setFailed(`Action failed with error ${e}`);
}

75
src/installer.ts Normal file
View File

@@ -0,0 +1,75 @@
import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import * as io from '@actions/io';
import getOS from './get-os';
import getURL from './get-url';
import * as path from 'path';
import {Tool, Action} from './constants';
export function getHomeDir(): string {
let homedir = '';
if (process.platform === 'win32') {
homedir = process.env['USERPROFILE'] || 'C:\\';
} else {
homedir = `${process.env.HOME}`;
}
core.debug(`homeDir: ${homedir}`);
return homedir;
}
export async function createWorkDir(): Promise<string> {
const workDir = path.join(getHomeDir(), Action.WorkDirName);
await io.mkdirP(workDir);
core.debug(`workDir: ${workDir}`);
return workDir;
}
export async function createTempDir(workDir: string): Promise<string> {
const tempDir = path.join(workDir, Action.TempDirName);
await io.mkdirP(tempDir);
core.debug(`tempDir: ${tempDir}`);
return tempDir;
}
export async function createBinDir(workDir: string): Promise<string> {
const binDir = path.join(workDir, 'bin');
await io.mkdirP(binDir);
core.addPath(binDir);
core.debug(`binDir: ${binDir}`);
return binDir;
}
export async function installer(version: string): Promise<void> {
const extended: string = core.getInput('extended');
core.debug(`Hugo extended: ${extended}`);
const osName: string = getOS(process.platform);
core.debug(`Operating System: ${osName}`);
const toolURL: string = getURL(osName, extended, version);
core.debug(`toolURL: ${toolURL}`);
const workDir = await createWorkDir();
const binDir = await createBinDir(workDir);
const tempDir = await createTempDir(workDir);
const toolAssets: string = await tc.downloadTool(toolURL);
let toolBin = '';
if (process.platform === 'win32') {
const toolExtractedFolder: string = await tc.extractZip(
toolAssets,
tempDir
);
toolBin = `${toolExtractedFolder}/${Tool.CmdName}.exe`;
} else {
const toolExtractedFolder: string = await tc.extractTar(
toolAssets,
tempDir
);
toolBin = `${toolExtractedFolder}/${Tool.CmdName}`;
}
await io.mv(toolBin, binDir);
}

56
src/main.ts Normal file
View File

@@ -0,0 +1,56 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import {getLatestVersion} from './get-latest-version';
import {installer} from './installer';
import {Tool} from './constants';
export interface ActionResult {
exitcode: number;
output: string;
}
export async function showVersion(
cmd: string,
args: string[]
): Promise<ActionResult> {
const result: ActionResult = {
exitcode: 0,
output: ''
};
const options = {
listeners: {
stdout: (data: Buffer): void => {
result.output += data.toString();
}
}
};
result.exitcode = await exec.exec(cmd, args, options);
core.debug(`command: ${cmd} ${args}`);
core.debug(`exit code: ${result.exitcode}`);
core.debug(`stdout: ${result.output}`);
return result;
}
export async function run(): Promise<ActionResult> {
const toolVersion: string = core.getInput('hugo-version');
let installVersion = '';
let result: ActionResult = {
exitcode: 0,
output: ''
};
if (toolVersion === '' || toolVersion === 'latest') {
installVersion = await getLatestVersion(Tool.Org, Tool.Repo, 'brew');
} else {
installVersion = toolVersion;
}
core.info(`${Tool.Name} version: ${installVersion}`);
await installer(installVersion);
result = await showVersion(Tool.CmdName, [Tool.CmdOptVersion]);
return result;
}

65
tsconfig.json Normal file
View File

@@ -0,0 +1,65 @@
{
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./lib", /* Redirect output structure to the directory. */
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
"removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"resolveJsonModule": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}