mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 20:32:19 +01:00
Compare commits
298 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb23a85c9f | ||
|
|
b30237c8ce | ||
|
|
4cd0877e87 | ||
|
|
b71ad2d014 | ||
|
|
e470a760d3 | ||
|
|
1649bea4d0 | ||
|
|
a2600d572b | ||
|
|
1bafab6d5a | ||
|
|
601b110315 | ||
|
|
c1f369064c | ||
|
|
8cd28fc857 | ||
|
|
702a3e4c9a | ||
|
|
d7620db17f | ||
|
|
64135da123 | ||
|
|
35eb187a3c | ||
|
|
c3a324ff3c | ||
|
|
9b11300647 | ||
|
|
6bed4121ee | ||
|
|
b9b88c049f | ||
|
|
da65b73f4d | ||
|
|
33d3f73fc7 | ||
|
|
a3f7ea4140 | ||
|
|
61937d118f | ||
|
|
88076695a9 | ||
|
|
2935a38e76 | ||
|
|
c69c549ff8 | ||
|
|
9cdeeef2f3 | ||
|
|
7c9a227529 | ||
|
|
514a588dc1 | ||
|
|
ea7a8f0343 | ||
|
|
de4f7b1136 | ||
|
|
0d2e11837b | ||
|
|
703c21fa41 | ||
|
|
844e33d410 | ||
|
|
3d71d2403d | ||
|
|
c6512d44a3 | ||
|
|
d17d5099d6 | ||
|
|
61f1757c8c | ||
|
|
f9fbf81b0c | ||
|
|
cc6e8832e8 | ||
|
|
0a1c87ea74 | ||
|
|
4ce8f62edb | ||
|
|
f48589d80e | ||
|
|
9026a94533 | ||
|
|
c430dcefd1 | ||
|
|
bc46e4063a | ||
|
|
6eb91d4870 | ||
|
|
df77f4d6bd | ||
|
|
bbb82a999a | ||
|
|
1972405991 | ||
|
|
ef069a5b5b | ||
|
|
cb4de30fad | ||
|
|
a8e5979167 | ||
|
|
5fcc41dbee | ||
|
|
bb9d9fa49a | ||
|
|
88ecc3f3da | ||
|
|
41b2600c91 | ||
|
|
4eed9e4759 | ||
|
|
81b5611b7c | ||
|
|
231e402918 | ||
|
|
4de9b09ee4 | ||
|
|
45ee73c48d | ||
|
|
75c9bc6dc7 | ||
|
|
f3bcf96547 | ||
|
|
2331ecd733 | ||
|
|
266cd0f351 | ||
|
|
4a12696aca | ||
|
|
07c50afccc | ||
|
|
9d826a479b | ||
|
|
d56d87baca | ||
|
|
6b6e84ed73 | ||
|
|
8095fcb0f4 | ||
|
|
f802d7f38d | ||
|
|
8850dd5d86 | ||
|
|
da0b7ac273 | ||
|
|
b9e10c3e30 | ||
|
|
38f8dc8ba8 | ||
|
|
0dd325e0bc | ||
|
|
e35c200d21 | ||
|
|
1710cea6fb | ||
|
|
3907220f13 | ||
|
|
747598e8dc | ||
|
|
022950c85b | ||
|
|
e375f4fff3 | ||
|
|
ac7a2d661b | ||
|
|
40cba97ea7 | ||
|
|
e8c9424357 | ||
|
|
aa532f2f96 | ||
|
|
24f14e4ba9 | ||
|
|
2fb0c15ce0 | ||
|
|
f18cf68aea | ||
|
|
aed27b9707 | ||
|
|
4f359ec551 | ||
|
|
a9aa73f7b4 | ||
|
|
aeba6547bb | ||
|
|
8eef9fcb44 | ||
|
|
3cb9216401 | ||
|
|
20ff13abbd | ||
|
|
6812c21f18 | ||
|
|
a1b1127907 | ||
|
|
02c90246b4 | ||
|
|
5000d1a8b6 | ||
|
|
63038f397f | ||
|
|
7e8dab4a15 | ||
|
|
8f4af8fa35 | ||
|
|
b8b4d74381 | ||
|
|
94853340b9 | ||
|
|
de65f3e128 | ||
|
|
c00fd7be83 | ||
|
|
7c0de2ddec | ||
|
|
236f382aa6 | ||
|
|
1bb54b05c8 | ||
|
|
b28afd97fa | ||
|
|
46a6a3afdf | ||
|
|
6e5afb7c2e | ||
|
|
737fda5741 | ||
|
|
c58f4ce12d | ||
|
|
95afbe8abf | ||
|
|
8f7332cde6 | ||
|
|
699805b6e1 | ||
|
|
2550d0ecb0 | ||
|
|
692ded2284 | ||
|
|
e9732216ce | ||
|
|
3315ca857b | ||
|
|
8d85402748 | ||
|
|
b4a0e8ba60 | ||
|
|
66d664bedd | ||
|
|
87e38e224d | ||
|
|
4fb2901627 | ||
|
|
7a50ddc694 | ||
|
|
b55f1c81fb | ||
|
|
0311892edd | ||
|
|
94ce32ea1b | ||
|
|
3317963a65 | ||
|
|
a79f520add | ||
|
|
b6a7551978 | ||
|
|
490ff3b995 | ||
|
|
d906f2610b | ||
|
|
bb87612dba | ||
|
|
6281061c0d | ||
|
|
8323a17f96 | ||
|
|
283bc47636 | ||
|
|
442aa4dbd4 | ||
|
|
386980e22b | ||
|
|
477d977a96 | ||
|
|
4642226db0 | ||
|
|
3130d100df | ||
|
|
66bce0558a | ||
|
|
d226d51229 | ||
|
|
37cc539052 | ||
|
|
48ef2dbba3 | ||
|
|
5817344f90 | ||
|
|
92ca1cb5bb | ||
|
|
1b689687f3 | ||
|
|
76e22f1114 | ||
|
|
490ab9b0a4 | ||
|
|
3d1e811264 | ||
|
|
6a39a0f0e5 | ||
|
|
fbf2ba3b8b | ||
|
|
9d8553d36d | ||
|
|
7d9bfa0c1d | ||
|
|
5ce129c278 | ||
|
|
7496c44053 | ||
|
|
dc9576430f | ||
|
|
3b68672699 | ||
|
|
6a7231ef83 | ||
|
|
4331a62207 | ||
|
|
7dc067063b | ||
|
|
57168bc2bc | ||
|
|
cca78d865e | ||
|
|
bad8e7f80f | ||
|
|
ca3c62d21c | ||
|
|
25520f73cd | ||
|
|
5e6d8b50e2 | ||
|
|
d006b81d18 | ||
|
|
1fa5fb2f2e | ||
|
|
f21cef4446 | ||
|
|
754a1d28dd | ||
|
|
ae65d5c8e9 | ||
|
|
10f36c7c91 | ||
|
|
236e039b5f | ||
|
|
2f904a6aa6 | ||
|
|
2b3acb31e4 | ||
|
|
f14d276121 | ||
|
|
9eb8f9e108 | ||
|
|
69200f8579 | ||
|
|
3cf50c6d11 | ||
|
|
900499cd1c | ||
|
|
da7c321b3b | ||
|
|
739a95f1e7 | ||
|
|
bc6f48c683 | ||
|
|
cf07920706 | ||
|
|
3e0ab3eb25 | ||
|
|
c5ea31b9d7 | ||
|
|
bc06efb2e0 | ||
|
|
3b3c59db47 | ||
|
|
b51e0ae5b4 | ||
|
|
8b813b0c62 | ||
|
|
638f751056 | ||
|
|
d04830441a | ||
|
|
5dc353210f | ||
|
|
129fcc86a6 | ||
|
|
34e697e615 | ||
|
|
608a9dce06 | ||
|
|
bcfd41e8b4 | ||
|
|
0a102fbbed | ||
|
|
ef869fb22f | ||
|
|
1490c6e417 | ||
|
|
ab3f21340f | ||
|
|
3ab6d78f1e | ||
|
|
007cfe211d | ||
|
|
1d2fa2a9c3 | ||
|
|
10b88ee9bf | ||
|
|
b93236ba6f | ||
|
|
535d0e0aa9 | ||
|
|
90fbf33ad8 | ||
|
|
d3401a30a3 | ||
|
|
eb85852ce3 | ||
|
|
3c10f8d88a | ||
|
|
0de12a826f | ||
|
|
5bb02a4a7d | ||
|
|
9aa9bf7c5a | ||
|
|
3be578e3c5 | ||
|
|
ec916d70ad | ||
|
|
d88559854c | ||
|
|
2965e59bb8 | ||
|
|
f0004ebb52 | ||
|
|
0101f0a550 | ||
|
|
c31a671975 | ||
|
|
78c603eb60 | ||
|
|
bbc02a7bb6 | ||
|
|
8e53828e04 | ||
|
|
3fe8ef06d5 | ||
|
|
3e1caf266f | ||
|
|
827a8f8ea5 | ||
|
|
7ed9704167 | ||
|
|
967e91f479 | ||
|
|
46f4f706ee | ||
|
|
5d81587f8c | ||
|
|
71b8a771a4 | ||
|
|
432b4df64a | ||
|
|
199ebd1829 | ||
|
|
9582ca51e5 | ||
|
|
79ff7701be | ||
|
|
ed1ba0af60 | ||
|
|
c57482c110 | ||
|
|
4e9981b947 | ||
|
|
7082e0fbec | ||
|
|
3e55082b3f | ||
|
|
839eb279b0 | ||
|
|
a02eaa1734 | ||
|
|
fa565fb82d | ||
|
|
7404f29555 | ||
|
|
7b66ed001b | ||
|
|
64951c5a73 | ||
|
|
35c74b6a6a | ||
|
|
b5fb138703 | ||
|
|
6f6a564fad | ||
|
|
cd3751ce70 | ||
|
|
07e434d37c | ||
|
|
1405de8b20 | ||
|
|
7346c7bdad | ||
|
|
f1ac6bf271 | ||
|
|
c7b570bed5 | ||
|
|
3ae7dd1270 | ||
|
|
9fdb1cb749 | ||
|
|
e2b52b7b4d | ||
|
|
8e97852759 | ||
|
|
b46070141b | ||
|
|
a1adb3bb7b | ||
|
|
fbb67a3359 | ||
|
|
2e5b1b84d6 | ||
|
|
6d819cab4c | ||
|
|
a6d33f08ac | ||
|
|
71663ea875 | ||
|
|
d7d48e3009 | ||
|
|
39aa1b7d04 | ||
|
|
b10091c0dc | ||
|
|
824187d952 | ||
|
|
e194c83989 | ||
|
|
c3970dfbdd | ||
|
|
082748017c | ||
|
|
79d6bc5f6e | ||
|
|
8f1aef7e73 | ||
|
|
dc8541739a | ||
|
|
4d54b90c0e | ||
|
|
25a3456032 | ||
|
|
4f371785be | ||
|
|
3bbd6d1917 | ||
|
|
d46d0aa12e | ||
|
|
85171ece4e | ||
|
|
624c2a083b | ||
|
|
7a9975a8b1 | ||
|
|
c635fd9746 | ||
|
|
19661a5c56 | ||
|
|
c4f3b85a0d | ||
|
|
68358aa004 | ||
|
|
ded0a1ada3 |
9
.dependabot/config.yml
Normal file
9
.dependabot/config.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
version: 1
|
||||
update_configs:
|
||||
- package_manager: "javascript"
|
||||
directory: "/"
|
||||
update_schedule: "live"
|
||||
default_labels:
|
||||
- "dependencies"
|
||||
commit_message:
|
||||
prefix: "deps"
|
||||
@@ -1,6 +1,2 @@
|
||||
.git
|
||||
.github
|
||||
LICENSE
|
||||
README.md
|
||||
action.yml
|
||||
images
|
||||
.*
|
||||
*
|
||||
|
||||
13
.editorconfig
Normal file
13
.editorconfig
Normal 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
|
||||
24
.eslintrc.json
Normal file
24
.eslintrc.json
Normal 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
3
.github/CODEOWNERS
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
|
||||
|
||||
* @peaceiris
|
||||
9
.github/FUNDING.yml
vendored
9
.github/FUNDING.yml
vendored
@@ -1,9 +0,0 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
# github: peaceiris
|
||||
patreon: peaceiris
|
||||
issuehunt: 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
31
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal 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
8
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal 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
20
.github/ISSUE_TEMPLATE/proposal.md
vendored
Normal 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.
|
||||
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,3 +0,0 @@
|
||||
- [ ] upgrade: hugo to ``
|
||||
- [ ] update: tag on readme
|
||||
- [ ] release: from **master** branch
|
||||
37
.github/workflows/dev-image.yml
vendored
Normal file
37
.github/workflows/dev-image.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: 'Dev Image CI'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/dev-image.yml'
|
||||
- '.dockerignore'
|
||||
- '.nvmrc'
|
||||
- 'Dockerfile'
|
||||
- 'Makefile'
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
paths:
|
||||
- '.github/workflows/dev-image.yml'
|
||||
- '.dockerignore'
|
||||
- '.nvmrc'
|
||||
- 'Dockerfile'
|
||||
- 'Makefile'
|
||||
|
||||
jobs:
|
||||
skipci:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- run: echo "[skip ci] ${{ contains(github.event.head_commit.message, '[skip ci]') }}"
|
||||
|
||||
dev-image-test:
|
||||
runs-on: ubuntu-18.04
|
||||
if: contains(github.event.head_commit.message, '[skip ci]') == false
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: make build
|
||||
- run: make cirun cmd="npm ci"
|
||||
- run: make ciall
|
||||
16
.github/workflows/purge-readme-image-cache.yml
vendored
Normal file
16
.github/workflows/purge-readme-image-cache.yml
vendored
Normal 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 %
|
||||
30
.github/workflows/push.yml
vendored
30
.github/workflows/push.yml
vendored
@@ -1,30 +0,0 @@
|
||||
name: Push workflow
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- 'release-v*'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Docker build and print Hugo version
|
||||
env:
|
||||
DOCKER_IMAGE: ${{ github.repository }}:${{ github.sha }}
|
||||
run: |
|
||||
docker build . --file Dockerfile --tag ${DOCKER_IMAGE} &&
|
||||
docker run ${DOCKER_IMAGE} version ||
|
||||
(echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1)
|
||||
|
||||
hadolint:
|
||||
runs-on: macOS-10.14
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: hadolint
|
||||
run: |
|
||||
brew install hadolint
|
||||
hadolint ./Dockerfile
|
||||
36
.github/workflows/release.yml
vendored
Normal file
36
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
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.2"
|
||||
curl -fsSL https://github.com/github/hub/raw/8d91904208171b013f9a9d1175f4ab39068db047/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
17
.github/workflows/stale.yml
vendored
Normal 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
38
.github/workflows/test-action.yml
vendored
Normal 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
93
.github/workflows/test.yml
vendored
Normal 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
23
.github/workflows/update-major-tag.yml
vendored
Normal 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
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
coverage
|
||||
.npm
|
||||
.eslintcache
|
||||
.env
|
||||
node_modules
|
||||
11
.prettierrc.json
Normal file
11
.prettierrc.json
Normal 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
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"git.ignoreLimitWarning": true
|
||||
}
|
||||
297
CHANGELOG.md
Normal file
297
CHANGELOG.md
Normal file
@@ -0,0 +1,297 @@
|
||||
# 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.8](https://github.com/peaceiris/actions-hugo/compare/v2.4.7...v2.4.8) (2020-03-27)
|
||||
|
||||
|
||||
### ci
|
||||
|
||||
* Add workflow for developing container (#231) ([b71ad2d](https://github.com/peaceiris/actions-hugo/commit/b71ad2d01404ec9d8cf12979cca37d47310e9aa7)), closes [#231](https://github.com/peaceiris/actions-hugo/issues/231)
|
||||
* set update_schedule live ([61937d1](https://github.com/peaceiris/actions-hugo/commit/61937d118fd2de55dd288ee18edabb0e9f9d11e0))
|
||||
|
||||
### deps
|
||||
|
||||
* bump @types/node from 12.12.30 to 12.12.31 ([64135da](https://github.com/peaceiris/actions-hugo/commit/64135da123255189740dea81571630c0d8fcf7e7))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.23.0 to 2.24.0 ([2935a38](https://github.com/peaceiris/actions-hugo/commit/2935a38e763ed8cd23c43ba95236eeb811f659f9))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.24.0 to 2.25.0 ([b9b88c0](https://github.com/peaceiris/actions-hugo/commit/b9b88c049f68fdd1e11e50212923d07eb22967e1))
|
||||
* bump @typescript-eslint/parser from 2.23.0 to 2.24.0 (#213) ([8807669](https://github.com/peaceiris/actions-hugo/commit/88076695a918ea1419ddeec9e16ba30e9faf4134)), closes [#213](https://github.com/peaceiris/actions-hugo/issues/213)
|
||||
* bump @typescript-eslint/parser from 2.24.0 to 2.25.0 ([6bed412](https://github.com/peaceiris/actions-hugo/commit/6bed4121ee5d7bd8a3e22c856261b59b442f8193))
|
||||
* bump @zeit/ncc from 0.21.1 to 0.22.0 ([c3a324f](https://github.com/peaceiris/actions-hugo/commit/c3a324ff3cf3e1b975c594d266ba4c7bd09daa19))
|
||||
* bump jest from 25.1.0 to 25.2.0 ([d7620db](https://github.com/peaceiris/actions-hugo/commit/d7620db17f5b0b91867f71d01874a879651a727b))
|
||||
* bump jest from 25.2.0 to 25.2.1 ([8cd28fc](https://github.com/peaceiris/actions-hugo/commit/8cd28fc857360a781d9ebd7103da74c17d4a2ce7))
|
||||
* bump jest from 25.2.1 to 25.2.2 ([601b110](https://github.com/peaceiris/actions-hugo/commit/601b110315ada15bc46842682625b71a0be1902c))
|
||||
* bump jest from 25.2.2 to 25.2.3 ([1649bea](https://github.com/peaceiris/actions-hugo/commit/1649bea4d0a67e4b6af6ed2b95fea1e66673239b))
|
||||
* bump jest-circus from 25.1.0 to 25.2.0 ([702a3e4](https://github.com/peaceiris/actions-hugo/commit/702a3e4c9ae5cf3ce9e380e45504d2b28e0dcc46))
|
||||
* bump jest-circus from 25.2.0 to 25.2.1 ([c1f3690](https://github.com/peaceiris/actions-hugo/commit/c1f369064cf05c10277655226e2a4723266d7161))
|
||||
* bump jest-circus from 25.2.1 to 25.2.2 ([1bafab6](https://github.com/peaceiris/actions-hugo/commit/1bafab6d5aa5d524d86e28cf6bcb8c41a09cc51d))
|
||||
* bump jest-circus from 25.2.2 to 25.2.3 ([a2600d5](https://github.com/peaceiris/actions-hugo/commit/a2600d572b522fb75cd38aba6b6306501618579d))
|
||||
* bump lint-staged from 10.0.8 to 10.0.9 ([35eb187](https://github.com/peaceiris/actions-hugo/commit/35eb187a3cd1e2b3370f881bfc97396d483585f8))
|
||||
* bump nock from 12.0.2 to 12.0.3 ([a3f7ea4](https://github.com/peaceiris/actions-hugo/commit/a3f7ea4140f3f85196f7ea5d76bd2eeb5524a646))
|
||||
* bump prettier from 1.19.1 to 2.0.1 ([da65b73](https://github.com/peaceiris/actions-hugo/commit/da65b73f4d4d3f23a392b882cb81c6538dda23b0))
|
||||
* bump prettier from 2.0.1 to 2.0.2 ([9b11300](https://github.com/peaceiris/actions-hugo/commit/9b11300647ddf5ce6c42733e335be78e5ae855b6))
|
||||
* node from 12.15.0 to 12.16.1 (#232) ([e470a76](https://github.com/peaceiris/actions-hugo/commit/e470a760d3eda16dddba7bcf4c66a3ae371c61f2)), closes [#232](https://github.com/peaceiris/actions-hugo/issues/232)
|
||||
|
||||
### docs
|
||||
|
||||
* Add codeclimate badge ([c69c549](https://github.com/peaceiris/actions-hugo/commit/c69c549ff8c5106c435657fba74f76cb807db1ec))
|
||||
* bump actions/checkout to v2 ([33d3f73](https://github.com/peaceiris/actions-hugo/commit/33d3f73fc7bb54a2fe21cdeee8e93881c3094b92))
|
||||
* update notes ([4cd0877](https://github.com/peaceiris/actions-hugo/commit/4cd0877e8793c755e53b341fa5fe43801f9319a2))
|
||||
|
||||
|
||||
|
||||
## [2.4.7](https://github.com/peaceiris/actions-hugo/compare/v2.4.6...v2.4.7) (2020-03-13)
|
||||
|
||||
|
||||
### ci
|
||||
|
||||
* update script link [skip ci] ([3d71d24](https://github.com/peaceiris/actions-hugo/commit/3d71d2403d36fe0c2770d1a69526ca5d8ba884c5))
|
||||
|
||||
### deps
|
||||
|
||||
* [security] bump acorn from 6.4.0 to 6.4.1 ([ea7a8f0](https://github.com/peaceiris/actions-hugo/commit/ea7a8f03436f5eefe2b0509210f62bb60eb645ce))
|
||||
* bump @actions/core from 1.2.2 to 1.2.3 ([cc6e883](https://github.com/peaceiris/actions-hugo/commit/cc6e8832e8df3d38ea15016148e7499d67595412))
|
||||
* bump @actions/tool-cache from 1.3.1 to 1.3.2 ([c6512d4](https://github.com/peaceiris/actions-hugo/commit/c6512d44a3620fbc3158c62e47d6a3e1a8a0696d))
|
||||
* bump @actions/tool-cache from 1.3.2 to 1.3.3 ([0d2e118](https://github.com/peaceiris/actions-hugo/commit/0d2e11837b439e036687b3766548fe67efe14e04))
|
||||
* bump @types/jest from 25.1.3 to 25.1.4 ([d17d509](https://github.com/peaceiris/actions-hugo/commit/d17d5099d67ed8aca0af28f612ffa36a2751b013))
|
||||
* bump @types/node from 12.12.28 to 12.12.29 ([bc46e40](https://github.com/peaceiris/actions-hugo/commit/bc46e4063a096f87cc0faaf107b160c4686b9462))
|
||||
* bump @types/node from 12.12.29 to 12.12.30 ([de4f7b1](https://github.com/peaceiris/actions-hugo/commit/de4f7b11367e07ace82f9ada91775cfbb03b88da))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.21.0 to 2.22.0 ([4ce8f62](https://github.com/peaceiris/actions-hugo/commit/4ce8f62edb9e86b50989996e17b6a8ed20b30a4b))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.22.0 to 2.23.0 ([844e33d](https://github.com/peaceiris/actions-hugo/commit/844e33d4107bfb7ab1cc21f6a4fab8b51bf441b1))
|
||||
* bump @typescript-eslint/parser from 2.21.0 to 2.22.0 ([0a1c87e](https://github.com/peaceiris/actions-hugo/commit/0a1c87ea74e0cdf3a147e464f7814576f07a46bf))
|
||||
* bump @typescript-eslint/parser from 2.22.0 to 2.23.0 ([703c21f](https://github.com/peaceiris/actions-hugo/commit/703c21fa41ab2b6f1c71a6bdbc4f795eff75abea))
|
||||
* bump eslint-plugin-jest from 23.8.0 to 23.8.1 (#198) ([f48589d](https://github.com/peaceiris/actions-hugo/commit/f48589d80e2cf825cef0479d547f2767a2bf9414)), closes [#198](https://github.com/peaceiris/actions-hugo/issues/198)
|
||||
* bump eslint-plugin-jest from 23.8.1 to 23.8.2 ([f9fbf81](https://github.com/peaceiris/actions-hugo/commit/f9fbf81b0c07b5293e596585fc22b49e40d818ec))
|
||||
* bump hub 2.14.1 to 2.14.2 ([61f1757](https://github.com/peaceiris/actions-hugo/commit/61f1757c8c728f8fd8e8e96f56b81171e007ef28))
|
||||
* bump nock from 12.0.1 to 12.0.2 ([c430dce](https://github.com/peaceiris/actions-hugo/commit/c430dcefd1e96d100f28c2a8e5b5084a84fe2c0d))
|
||||
* bump typescript from 3.8.2 to 3.8.3 ([9026a94](https://github.com/peaceiris/actions-hugo/commit/9026a9453330ef8189b318c2339c250ea05c5947))
|
||||
|
||||
|
||||
|
||||
## [2.4.6](https://github.com/peaceiris/actions-hugo/compare/v2.4.5...v2.4.6) (2020-02-26)
|
||||
|
||||
|
||||
### deps
|
||||
|
||||
* bump @types/jest from 25.1.1 to 25.1.2 ([da0b7ac](https://github.com/peaceiris/actions-hugo/commit/da0b7ac273fb7fc345e8a98c58e620b7f85df2f5))
|
||||
* bump @types/jest from 25.1.2 to 25.1.3 ([45ee73c](https://github.com/peaceiris/actions-hugo/commit/45ee73c48da3bd070b8e8a1f9bfed354e6e50c82))
|
||||
* bump @types/node from 12.12.27 to 12.12.28 ([4eed9e4](https://github.com/peaceiris/actions-hugo/commit/4eed9e47590cb859dcc19bd396d1360b45813dda))
|
||||
* bump @types/node from 13.7.0 to 13.7.1 ([9d826a4](https://github.com/peaceiris/actions-hugo/commit/9d826a479b558de962af26211fc1a3e2ae6d7b92))
|
||||
* bump @types/node from 13.7.1 to 13.7.2 ([f3bcf96](https://github.com/peaceiris/actions-hugo/commit/f3bcf965479d21716fcdb4c6b459562b13892a4a))
|
||||
* bump @types/node-fetch from 2.5.4 to 2.5.5 ([a8e5979](https://github.com/peaceiris/actions-hugo/commit/a8e5979167c907a9253458eb96b7b3281f055722))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.19.0 to 2.19.2 ([d56d87b](https://github.com/peaceiris/actions-hugo/commit/d56d87baca65a2ba667e218745e6409fc8ad6fcf))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.19.2 to 2.20.0 ([266cd0f](https://github.com/peaceiris/actions-hugo/commit/266cd0f3511e7ae5949d408a7374f7cf418420cd))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.20.0 to 2.21.0 ([5fcc41d](https://github.com/peaceiris/actions-hugo/commit/5fcc41dbee64328185c1450e01b5ec5c7bb7e7e8))
|
||||
* bump @typescript-eslint/parser from 2.19.0 to 2.19.2 ([6b6e84e](https://github.com/peaceiris/actions-hugo/commit/6b6e84ed73751418f2c94fe50e135960082c51af))
|
||||
* bump @typescript-eslint/parser from 2.19.2 to 2.20.0 ([2331ecd](https://github.com/peaceiris/actions-hugo/commit/2331ecd7332e9b1d816565a6faecf4b1f0e3f0d2))
|
||||
* bump @typescript-eslint/parser from 2.20.0 to 2.21.0 ([bb9d9fa](https://github.com/peaceiris/actions-hugo/commit/bb9d9fa49a8dde93d1121211f8fe140c6f85794d))
|
||||
* bump @zeit/ncc from 0.21.0 to 0.21.1 ([ef069a5](https://github.com/peaceiris/actions-hugo/commit/ef069a5b5b3305eebd68c97222f27a4b7eff8187))
|
||||
* bump eslint-plugin-jest from 23.6.0 to 23.7.0 ([f802d7f](https://github.com/peaceiris/actions-hugo/commit/f802d7f38d757aa9d19596ede8783cc21687fc0d))
|
||||
* bump eslint-plugin-jest from 23.7.0 to 23.8.0 ([cb4de30](https://github.com/peaceiris/actions-hugo/commit/cb4de30fad3d0414055024a3a0d460b1e8ec39ec))
|
||||
* bump husky from 4.2.1 to 4.2.3 ([07c50af](https://github.com/peaceiris/actions-hugo/commit/07c50afccc821b24526b6c6257f65ba17a4bb727))
|
||||
* bump lint-staged from 10.0.7 to 10.0.8 ([1972405](https://github.com/peaceiris/actions-hugo/commit/1972405991185de2af9d20fcf69786268e52039c))
|
||||
* bump nock from 11.7.2 to 11.8.2 ([8095fcb](https://github.com/peaceiris/actions-hugo/commit/8095fcb0f41d1541ef1d84e019cb67f9e9595e85))
|
||||
* bump nock from 11.8.2 to 12.0.0 ([4a12696](https://github.com/peaceiris/actions-hugo/commit/4a12696aca76ef260d0b7a55d1290c2b778ddfdb))
|
||||
* bump nock from 12.0.0 to 12.0.1 ([231e402](https://github.com/peaceiris/actions-hugo/commit/231e4029187d257cc58b840ed341257b4b20e288))
|
||||
* bump node from 12.14.1 to 12.15.0 (#172) ([8850dd5](https://github.com/peaceiris/actions-hugo/commit/8850dd5d86b98f7f80c761547cd73ce9df779127)), closes [#172](https://github.com/peaceiris/actions-hugo/issues/172)
|
||||
* bump ts-jest from 25.2.0 to 25.2.1 ([4de9b09](https://github.com/peaceiris/actions-hugo/commit/4de9b09ee49dc89ca2d9a914f99020b6392580eb))
|
||||
* bump typescript from 3.7.5 to 3.8.2 ([81b5611](https://github.com/peaceiris/actions-hugo/commit/81b5611b7c835dabe63ae1700be5719f276debf4))
|
||||
* Rollback types/node 13 to 12 (#185) ([75c9bc6](https://github.com/peaceiris/actions-hugo/commit/75c9bc6dc7f95893877154254cd001d8b5ebe76a)), closes [#185](https://github.com/peaceiris/actions-hugo/issues/185)
|
||||
|
||||
### docs
|
||||
|
||||
* Add note about actions/checkout@v2 ([b9e10c3](https://github.com/peaceiris/actions-hugo/commit/b9e10c3e30353f050fbad487660f9dd198c32662))
|
||||
* update ([88ecc3f](https://github.com/peaceiris/actions-hugo/commit/88ecc3f3da2d10d3aa78000a27da4490493e81cb))
|
||||
* use github_token ([41b2600](https://github.com/peaceiris/actions-hugo/commit/41b2600c915a0e5a3e0b2fc0fa178e65e311152a))
|
||||
* use peaceiris/actions-gh-pages@v3 ([38f8dc8](https://github.com/peaceiris/actions-hugo/commit/38f8dc8ba89e5b6143d0c921b049481c011aa0a7))
|
||||
|
||||
|
||||
|
||||
## [2.4.5](https://github.com/peaceiris/actions-hugo/compare/v2.4.4...v2.4.5) (2020-02-04)
|
||||
|
||||
|
||||
### chore
|
||||
|
||||
* Add engines field ([aeba654](https://github.com/peaceiris/actions-hugo/commit/aeba6547bbb28e39b29e7d03f6978c80d6c09931))
|
||||
|
||||
### deps
|
||||
|
||||
* bump @types/jest from 25.1.0 to 25.1.1 ([f18cf68](https://github.com/peaceiris/actions-hugo/commit/f18cf68aea6a7d00504e6335efedb30a14f8c021))
|
||||
* bump @types/node from 13.5.0 to 13.5.1 ([a9aa73f](https://github.com/peaceiris/actions-hugo/commit/a9aa73f7b42aadd8e6bbbf77ad51143b99f18e40))
|
||||
* bump @types/node from 13.5.1 to 13.5.2 ([aed27b9](https://github.com/peaceiris/actions-hugo/commit/aed27b97077aed97ef3c9e27ee7066a5a7a55c40))
|
||||
* bump @types/node from 13.5.2 to 13.5.3 ([e8c9424](https://github.com/peaceiris/actions-hugo/commit/e8c9424357a611602420145f8f289752b2521863))
|
||||
* bump @types/node from 13.5.3 to 13.7.0 ([e375f4f](https://github.com/peaceiris/actions-hugo/commit/e375f4fff3fc25ace239150a37912746292b4e67))
|
||||
* bump @typescript-eslint/eslint-plugin from 2.18.0 to 2.19.0 ([3907220](https://github.com/peaceiris/actions-hugo/commit/3907220f13b04e23a4d300439cdc11b05ea034c1))
|
||||
* bump @typescript-eslint/parser from 2.18.0 to 2.19.0 (#170) ([747598e](https://github.com/peaceiris/actions-hugo/commit/747598e8dc8f2f8ea8c3a8964531e3c7fa1b11d7)), closes [#170](https://github.com/peaceiris/actions-hugo/issues/170)
|
||||
* bump lint-staged from 10.0.3 to 10.0.4 ([4f359ec](https://github.com/peaceiris/actions-hugo/commit/4f359ec551fa404b81d7a5832b16a3729874c611))
|
||||
* bump lint-staged from 10.0.4 to 10.0.5 ([2fb0c15](https://github.com/peaceiris/actions-hugo/commit/2fb0c15ce023c9b4831e1acab7d97c0ba50d5a9d))
|
||||
* bump lint-staged from 10.0.5 to 10.0.6 ([aa532f2](https://github.com/peaceiris/actions-hugo/commit/aa532f2f962cb4c9473f59fd4adbf67f4bfc3554))
|
||||
* bump lint-staged from 10.0.6 to 10.0.7 ([ac7a2d6](https://github.com/peaceiris/actions-hugo/commit/ac7a2d661b0cb2b28f9967e2c65567f3b6ef9abc))
|
||||
* bump ts-jest from 25.0.0 to 25.1.0 ([24f14e4](https://github.com/peaceiris/actions-hugo/commit/24f14e4ba907ee0920a608a0cf204387f1a26d53))
|
||||
* bump ts-jest from 25.1.0 to 25.2.0 ([022950c](https://github.com/peaceiris/actions-hugo/commit/022950c85b46b0e873e66b5d6732b02ea09aa566))
|
||||
|
||||
### docs
|
||||
|
||||
* add Dependabot badge ([40cba97](https://github.com/peaceiris/actions-hugo/commit/40cba97ea7d81fcbaccd754f9d4e2f28db6afbf3))
|
||||
|
||||
|
||||
|
||||
## [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))
|
||||
35
Dockerfile
35
Dockerfile
@@ -1,10 +1,29 @@
|
||||
FROM golang:1.13.0-buster
|
||||
ARG NODE_VERSION
|
||||
|
||||
ENV HUGO_VERSION='0.58.2'
|
||||
ENV HUGO_NAME="hugo_extended_${HUGO_VERSION}_Linux-64bit"
|
||||
ENV HUGO_URL="https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_NAME}.tar.gz"
|
||||
RUN wget "${HUGO_URL}" && \
|
||||
tar -zxvf "${HUGO_NAME}.tar.gz" && \
|
||||
mv ./hugo /go/bin/
|
||||
FROM node:${NODE_VERSION}-buster-slim
|
||||
|
||||
ENTRYPOINT [ "/go/bin/hugo" ]
|
||||
SHELL ["/bin/bash", "-l", "-c"]
|
||||
|
||||
RUN apt-get update && \
|
||||
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/*
|
||||
|
||||
WORKDIR /git
|
||||
ENV GIT_VERSION="2.26.0"
|
||||
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
|
||||
|
||||
WORKDIR /repo
|
||||
ENV RUNNER_TEMP="/tmp"
|
||||
|
||||
CMD [ "bash" ]
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
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
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
32
Makefile
Normal file
32
Makefile
Normal file
@@ -0,0 +1,32 @@
|
||||
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)
|
||||
DOCKER_RUN_CI := docker run --rm -v ${PWD}:/repo $(IMAGE_NAME)
|
||||
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
$(DOCKER_BUILD)
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
$(DOCKER_RUN) $(cmd)
|
||||
|
||||
.PHONY: cirun
|
||||
cirun:
|
||||
$(DOCKER_RUN_CI) $(cmd)
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
$(DOCKER_RUN) npm test
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
$(DOCKER_RUN) npm run all
|
||||
|
||||
.PHONY: ciall
|
||||
ciall:
|
||||
$(DOCKER_RUN_CI) npm run all
|
||||
212
README.md
212
README.md
@@ -1,26 +1,69 @@
|
||||
[](https://github.com/peaceiris/actions-hugo/blob/master/LICENSE)
|
||||
[](https://github.com/peaceiris/actions-hugo/releases/latest)
|
||||
[](https://github.com/peaceiris/actions-hugo/releases)
|
||||
[](https://github.com/peaceiris/actions-hugo/actions)
|
||||
[](https://hub.docker.com/r/peaceiris/gha-hugo)
|
||||
[](https://github.com/peaceiris/actions-hugo/releases.atom)
|
||||

|
||||
[](https://dependabot.com)
|
||||
|
||||
<img width="400" alt="GitHub Actions for Hugo extended" src="./images/ogp.svg">
|
||||
[](https://www.codefactor.io/repository/github/peaceiris/actions-hugo)
|
||||
[](https://codecov.io/gh/peaceiris/actions-hugo)
|
||||
[](https://codeclimate.com/github/peaceiris/actions-hugo/maintainability)
|
||||
|
||||
<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 world’s 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
|
||||
|
||||
### Create `.github/workflows/gh-pages.yml`
|
||||
### ⭐️ 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
|
||||
|
||||
[](https://github.com/peaceiris/actions-gh-pages)
|
||||
|
||||
@@ -36,24 +79,130 @@ on:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: build
|
||||
uses: peaceiris/actions-hugo@v0.58.2
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
args: --gc --minify --cleanDestinationDir
|
||||
submodules: true
|
||||
|
||||
- name: deploy
|
||||
uses: peaceiris/actions-gh-pages@v2.2.0
|
||||
env:
|
||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
PUBLISH_BRANCH: gh-pages
|
||||
PUBLISH_DIR: ./public
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.62.2'
|
||||
# extended: true
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
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
|
||||
@@ -64,6 +213,27 @@ jobs:
|
||||
|
||||
|
||||
|
||||
## About the author
|
||||
## About Maintainer
|
||||
|
||||
- [peaceiris's homepage](https://peaceiris.com/)
|
||||
- [peaceiris homepage](https://peaceiris.com/)
|
||||
|
||||
|
||||
|
||||
## Maintainer Notes
|
||||
|
||||
Run `npm test` on a Docker container.
|
||||
|
||||
```sh
|
||||
# On container
|
||||
make build
|
||||
make all
|
||||
|
||||
# Release script on host
|
||||
./release.sh
|
||||
```
|
||||
|
||||
|
||||
|
||||
<div align="right">
|
||||
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||
</div>
|
||||
|
||||
1
__tests__/data/brew.json
Normal file
1
__tests__/data/brew.json
Normal 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
958
__tests__/data/github.json
Normal 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"
|
||||
}
|
||||
64
__tests__/get-latest-version.test.ts
Normal file
64
__tests__/get-latest-version.test.ts
Normal 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
15
__tests__/get-os.test.ts
Normal 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
19
__tests__/get-url.test.ts
Normal 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
98
__tests__/main.test.ts
Normal 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);
|
||||
});
|
||||
});
|
||||
17
action.yml
17
action.yml
@@ -1,9 +1,18 @@
|
||||
name: 'Hugo build action'
|
||||
description: 'GitHub Actions for Hugo extended and Hugo Modules'
|
||||
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: 'docker'
|
||||
image: 'Dockerfile'
|
||||
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 |
11
jest.config.js
Normal file
11
jest.config.js
Normal 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
|
||||
}
|
||||
6701
lib/index.js
Normal file
6701
lib/index.js
Normal file
File diff suppressed because it is too large
Load Diff
11167
package-lock.json
generated
Normal file
11167
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
79
package.json
Normal file
79
package.json
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"name": "actions-hugo",
|
||||
"version": "2.4.8",
|
||||
"description": "GitHub Actions for Hugo",
|
||||
"main": "lib/index.js",
|
||||
"engines": {
|
||||
"node": ">=12.14.1",
|
||||
"npm": ">=6.13.7"
|
||||
},
|
||||
"scripts": {
|
||||
"all": "npm run format:check && npm run lint && npm test",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"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.3",
|
||||
"@actions/exec": "^1.0.3",
|
||||
"@actions/io": "^1.0.2",
|
||||
"@actions/tool-cache": "^1.3.3",
|
||||
"node-fetch": "^2.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^25.1.4",
|
||||
"@types/node": "~12",
|
||||
"@types/node-fetch": "^2.5.5",
|
||||
"@typescript-eslint/eslint-plugin": "^2.25.0",
|
||||
"@typescript-eslint/parser": "^2.25.0",
|
||||
"@zeit/ncc": "^0.22.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-plugin-jest": "^23.8.2",
|
||||
"husky": "^4.2.3",
|
||||
"jest": "^25.2.3",
|
||||
"jest-circus": "^25.2.3",
|
||||
"lint-staged": "^10.0.9",
|
||||
"nock": "^12.0.3",
|
||||
"prettier": "2.0.2",
|
||||
"standard-version": "^7.1.0",
|
||||
"ts-jest": "^25.2.1",
|
||||
"typescript": "^3.8.3"
|
||||
}
|
||||
}
|
||||
48
release.sh
Executable file
48
release.sh
Executable 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
14
src/constants.ts
Normal 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
30
src/get-latest-version.ts
Normal 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
11
src/get-os.ts
Normal 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
29
src/get-url.ts
Normal 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
8
src/index.ts
Normal 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
75
src/installer.ts
Normal 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
56
src/main.ts
Normal 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
65
tsconfig.json
Normal 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user