mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 20:32:19 +01:00
Compare commits
52 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 |
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.*
|
||||||
|
|
||||||
|
!.eslintrc.json
|
||||||
|
!.prettierrc.json
|
||||||
|
|
||||||
|
coverage
|
||||||
|
node_modules
|
||||||
@@ -4,7 +4,12 @@
|
|||||||
"es6": true,
|
"es6": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:jest/recommended"
|
||||||
|
],
|
||||||
"globals": {
|
"globals": {
|
||||||
"Atomics": "readonly",
|
"Atomics": "readonly",
|
||||||
"SharedArrayBuffer": "readonly"
|
"SharedArrayBuffer": "readonly"
|
||||||
|
|||||||
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 %
|
||||||
43
.github/workflows/release.yml
vendored
Normal file
43
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
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 hub
|
||||||
|
run: |
|
||||||
|
HUB_VERSION="2.13.0"
|
||||||
|
HUB_NAME="hub-linux-amd64-${HUB_VERSION}"
|
||||||
|
HUB_TARBALL="${HUB_NAME}.tgz"
|
||||||
|
wget -q "https://github.com/github/hub/releases/download/v${HUB_VERSION}/${HUB_TARBALL}"
|
||||||
|
tar -zxvf "./${HUB_TARBALL}"
|
||||||
|
mkdir ~/bin
|
||||||
|
cp "./${HUB_NAME}/bin/hub" ~/bin/
|
||||||
|
echo "::add-path::~/bin/"
|
||||||
|
rm -rf "./${HUB_NAME}" "./${HUB_TARBALL}"
|
||||||
|
|
||||||
|
- 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
|
||||||
|
sed -i "1iRelease ${TAG_NAME}\n" ./release_notes.md
|
||||||
|
hub release create \
|
||||||
|
--draft \
|
||||||
|
--prerelease \
|
||||||
|
--file ./release_notes.md \
|
||||||
|
"${TAG_NAME}"
|
||||||
33
.github/workflows/test-action.yml
vendored
Normal file
33
.github/workflows/test-action.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
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 }}
|
||||||
|
|
||||||
|
- run: hugo version
|
||||||
99
.github/workflows/test.yml
vendored
99
.github/workflows/test.yml
vendored
@@ -1,27 +1,39 @@
|
|||||||
name: 'Test'
|
name: 'Test'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize]
|
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
skipci:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- run: echo "[Skip CI] ${{ contains(github.event.head_commit.message, '[skip ci]') }}"
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
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
|
- name: Read .nvmrc
|
||||||
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
|
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
|
||||||
id: nvm
|
id: nvm
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
@@ -29,50 +41,49 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '${{ steps.nvm.outputs.NVMRC }}'
|
node-version: '${{ steps.nvm.outputs.NVMRC }}'
|
||||||
|
|
||||||
- name: Cache
|
# - name: Get npm cache directory
|
||||||
uses: actions/cache@v1
|
# id: npm-cache
|
||||||
with:
|
# run: |
|
||||||
path: ~/.npm
|
# echo "::set-output name=dir::$(npm config get cache)"
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
#
|
||||||
restore-keys: |
|
# - name: Cache npm
|
||||||
${{ runner.os }}-node-
|
# 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
|
- run: npm ci
|
||||||
|
|
||||||
- run: npm run format:check
|
- name: Run prettier
|
||||||
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
|
run: npm run format:check
|
||||||
|
|
||||||
- run: npm run lint
|
- 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
|
- run: npm test
|
||||||
|
|
||||||
- name: Check ncc
|
- name: Upload test coverage as artifact
|
||||||
run: |
|
|
||||||
npm run build
|
|
||||||
test -z "$(git status --short)"
|
|
||||||
|
|
||||||
- name: Upload test coverage
|
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: coverage
|
name: coverage
|
||||||
path: coverage
|
path: coverage
|
||||||
|
|
||||||
|
- name: Upload test coverage to Coveralls
|
||||||
test-prod:
|
uses: coverallsapp/github-action@v1.0.1
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
needs: test
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: ['ubuntu-18.04', 'macos-latest', 'windows-latest']
|
|
||||||
hugo-version: ['latest', '0.57.2']
|
|
||||||
extended: [true, false]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
parallel: true
|
||||||
|
|
||||||
- name: Test action
|
- name: Coveralls Finished
|
||||||
uses: ./
|
uses: coverallsapp/github-action@v1.0.1
|
||||||
with:
|
with:
|
||||||
hugo-version: ${{ matrix.hugo-version }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
extended: ${{ matrix.extended }}
|
parallel-finished: true
|
||||||
|
|||||||
7
.github/workflows/update-major-tag.yml
vendored
7
.github/workflows/update-major-tag.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Update major tag
|
- name: Update major tag
|
||||||
if: github.event.release.prerelease == false
|
if: github.event.release.prerelease == false
|
||||||
@@ -19,6 +19,5 @@ jobs:
|
|||||||
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
|
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_NAME="${GITHUB_REF##refs/tags/}"
|
||||||
export TAG_MAJOR="${TAG_NAME%%.*}"
|
export TAG_MAJOR="${TAG_NAME%%.*}"
|
||||||
git tag "${TAG_MAJOR}" || git tag -d "${TAG_MAJOR}" ; git push origin ":refs/tags/${TAG_MAJOR}"
|
git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}"
|
||||||
git tag "${TAG_MAJOR}" || true
|
git push --force origin "${TAG_MAJOR}"
|
||||||
git push --tags origin
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
.DS_Store
|
||||||
coverage
|
coverage
|
||||||
.npm
|
.npm
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|||||||
80
CHANGELOG.md
Normal file
80
CHANGELOG.md
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
# 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.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))
|
||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2019 Shohei Ueda (peaceiris)
|
Copyright (c) 2020 Shohei Ueda (peaceiris)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
cmd := "bash"
|
||||||
|
msg := ""
|
||||||
|
IMAGE_NAME := actions-hugo-dev:latest
|
||||||
|
DOCKER_BUILD := docker build . -t $(IMAGE_NAME) --file ./__tests__/Dockerfile
|
||||||
|
DOCKER_RUN := docker run --rm -i -t -v ${PWD}:/repo -v ~/.gitconfig:/etc/gitconfig $(IMAGE_NAME)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build:
|
||||||
|
$(DOCKER_BUILD)
|
||||||
|
|
||||||
|
.PHONY: run
|
||||||
|
run:
|
||||||
|
$(DOCKER_RUN) $(cmd)
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test:
|
||||||
|
$(DOCKER_RUN) npm test
|
||||||
|
|
||||||
|
.PHONY: commit
|
||||||
|
commit:
|
||||||
|
$(DOCKER_RUN) git commit -m "$(msg)"
|
||||||
57
README.md
57
README.md
@@ -3,6 +3,7 @@
|
|||||||
[](https://github.com/peaceiris/actions-hugo/releases)
|
[](https://github.com/peaceiris/actions-hugo/releases)
|
||||||

|

|
||||||
[](https://www.codefactor.io/repository/github/peaceiris/actions-hugo)
|
[](https://www.codefactor.io/repository/github/peaceiris/actions-hugo)
|
||||||
|
[](https://coveralls.io/github/peaceiris/actions-hugo?branch=master)
|
||||||
|
|
||||||
<img width="400" alt="GitHub Actions for Hugo" src="./images/ogp.svg">
|
<img width="400" alt="GitHub Actions for Hugo" src="./images/ogp.svg">
|
||||||
|
|
||||||
@@ -12,9 +13,13 @@
|
|||||||
|
|
||||||
- [gohugoio/hugo: The world’s fastest framework for building websites.](https://github.com/gohugoio/hugo)
|
- [gohugoio/hugo: The world’s fastest framework for building websites.](https://github.com/gohugoio/hugo)
|
||||||
|
|
||||||
We can run **Hugo** on a virtual machine of **GitHub Actions** by this Hugo action. **Hugo extended** version and **Hugo Modules** are supported.
|
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 action 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 less than **4 sec**. (A docker base action was taking about 1 min or more execution time to build or pull.)
|
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 less than **1 sec**.
|
||||||
|
(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 |
|
| OS (runs-on) | ubuntu-18.04 | macos-latest | windows-2019 |
|
||||||
|---|:---:|:---:|:---:|
|
|---|:---:|:---:|:---:|
|
||||||
@@ -39,8 +44,10 @@ From `v2`, this Hugo action migrated to a JavaScript (TypeScript) action. We no
|
|||||||
- [⭐️ Use the latest version of Hugo](#%EF%B8%8F-use-the-latest-version-of-hugo)
|
- [⭐️ Use the latest version of Hugo](#%EF%B8%8F-use-the-latest-version-of-hugo)
|
||||||
- [Tips](#tips)
|
- [Tips](#tips)
|
||||||
- [⭐️ Read Hugo version from file](#%EF%B8%8F-read-hugo-version-from-file)
|
- [⭐️ Read Hugo version from file](#%EF%B8%8F-read-hugo-version-from-file)
|
||||||
|
- [CHANGELOG](#changelog)
|
||||||
- [License](#license)
|
- [License](#license)
|
||||||
- [About the author](#about-the-author)
|
- [About Maintainer](#about-maintainer)
|
||||||
|
- [Maintainer Notes](#maintainer-notes)
|
||||||
|
|
||||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||||
|
|
||||||
@@ -78,7 +85,7 @@ jobs:
|
|||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: '0.59.1'
|
hugo-version: '0.62.2'
|
||||||
# extended: true
|
# extended: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -108,7 +115,7 @@ Set `extended: true` to use a Hugo extended version.
|
|||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: '0.59.1'
|
hugo-version: '0.62.2'
|
||||||
extended: true
|
extended: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -140,7 +147,7 @@ How to sync a Hugo version between a Docker Compose and a GitHub Actions workflo
|
|||||||
Write a `HUGO_VERSION` to the `.env` file like the following and push it to a remote branch.
|
Write a `HUGO_VERSION` to the `.env` file like the following and push it to a remote branch.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
HUGO_VERSION=0.59.1
|
HUGO_VERSION=0.62.2
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, add a step to read a Hugo version from the `.env` file.
|
Next, add a step to read a Hugo version from the `.env` file.
|
||||||
@@ -179,6 +186,20 @@ services:
|
|||||||
- --buildDrafts
|
- --buildDrafts
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The alpine base Hugo Docker image is provided on the following repository.
|
||||||
|
|
||||||
|
> [peaceiris/hugo-extended-docker: Hugo alpine base Docker image (Hugo extended and Hugo Modules)](https://github.com/peaceiris/hugo-extended-docker)
|
||||||
|
|
||||||
|
<div align="right">
|
||||||
|
<a href="#table-of-contents">Back to TOC ☝️</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## CHANGELOG
|
||||||
|
|
||||||
|
- [CHANGELOG.md](CHANGELOG.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
@@ -189,9 +210,29 @@ services:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## About the author
|
## About Maintainer
|
||||||
|
|
||||||
- [peaceiris's homepage](https://peaceiris.com/)
|
- [peaceiris homepage](https://peaceiris.com/)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Maintainer Notes
|
||||||
|
|
||||||
|
Run `npm` and `git commit` commands on a container.
|
||||||
|
|
||||||
|
**On Host**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# Docker
|
||||||
|
make build
|
||||||
|
make run
|
||||||
|
make run cmd="env"
|
||||||
|
make test
|
||||||
|
make commit msg="chore: Add Makefile"
|
||||||
|
|
||||||
|
# Release
|
||||||
|
./release.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
11
__tests__/Dockerfile
Normal file
11
__tests__/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM node:12-slim
|
||||||
|
|
||||||
|
WORKDIR /repo
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get -y install --no-install-recommends \
|
||||||
|
git \
|
||||||
|
bash && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
CMD [ "bash" ]
|
||||||
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);
|
||||||
|
});
|
||||||
|
});
|
||||||
91
__tests__/main.test.ts
Normal file
91
__tests__/main.test.ts
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
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);
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
jest.resetModules();
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
delete process.env['INPUT_HUGO-VERSION'];
|
||||||
|
nock.cleanAll();
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('Integration testing run()', () => {
|
||||||
|
afterEach(async () => {
|
||||||
|
const workDir = path.join(`${process.env.HOME}`, Action.WorkDirName);
|
||||||
|
await io.rmRF(workDir);
|
||||||
|
});
|
||||||
|
|
||||||
|
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`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
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);
|
||||||
|
});
|
||||||
|
});
|
||||||
3878
lib/index.js
3878
lib/index.js
File diff suppressed because it is too large
Load Diff
1936
package-lock.json
generated
1936
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
45
package.json
45
package.json
@@ -1,22 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "hugo-action",
|
"name": "hugo-action",
|
||||||
"version": "2.2.0",
|
"version": "2.4.1",
|
||||||
"description": "Hugo setup action",
|
"description": "GitHub Actions for Hugo",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint ./src/**/*.ts",
|
"lint": "eslint ./{src,__tests__}/**/*.ts",
|
||||||
"lint:fix": "eslint --fix ./src/**/*.ts",
|
"lint:fix": "eslint --fix ./{src,__tests__}/**/*.ts",
|
||||||
"test": "jest --coverage --verbose",
|
"test": "jest --coverage --verbose",
|
||||||
"build": "ncc build ./src/index.ts -o lib",
|
"build": "ncc build ./src/index.ts -o lib",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"format": "prettier --write **/*.ts",
|
"format": "prettier --write **/*.ts",
|
||||||
"format:check": "prettier --check **/*.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": {
|
"husky": {
|
||||||
"skipCI": true,
|
"skipCI": true,
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "lint-staged",
|
"pre-commit": "lint-staged",
|
||||||
"post-commit": "npm run build && echo '⚠️ Do not forget to Commit and Push ./lib/index.js'"
|
"post-merge": "npm run update-deps; git remote prune origin"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
@@ -46,24 +48,29 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/peaceiris/actions-hugo#readme",
|
"homepage": "https://github.com/peaceiris/actions-hugo#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.0",
|
"@actions/core": "^1.2.1",
|
||||||
"@actions/exec": "^1.0.1",
|
"@actions/exec": "^1.0.3",
|
||||||
"@actions/io": "^1.0.1",
|
"@actions/io": "^1.0.2",
|
||||||
"@actions/tool-cache": "^1.1.2",
|
"@actions/tool-cache": "^1.3.0",
|
||||||
"xmlhttprequest": "^1.8.0"
|
"node-fetch": "^2.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^24.0.23",
|
"@types/jest": "^24.9.0",
|
||||||
"@types/node": "^12.12.14",
|
"@types/node": "^13.1.7",
|
||||||
"@typescript-eslint/parser": "^2.10.0",
|
"@types/node-fetch": "^2.5.4",
|
||||||
"@zeit/ncc": "^0.20.5",
|
"@typescript-eslint/eslint-plugin": "^2.16.0",
|
||||||
"eslint": "^6.7.2",
|
"@typescript-eslint/parser": "^2.16.0",
|
||||||
"husky": "^3.1.0",
|
"@zeit/ncc": "^0.21.0",
|
||||||
|
"eslint": "^6.8.0",
|
||||||
|
"eslint-plugin-jest": "^23.6.0",
|
||||||
|
"husky": "^4.0.10",
|
||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"jest-circus": "^24.9.0",
|
"jest-circus": "^24.9.0",
|
||||||
"lint-staged": "^9.5.0",
|
"lint-staged": "^9.5.0",
|
||||||
|
"nock": "^11.7.2",
|
||||||
"prettier": "1.19.1",
|
"prettier": "1.19.1",
|
||||||
"ts-jest": "^24.2.0",
|
"standard-version": "^7.0.1",
|
||||||
"typescript": "^3.7.3"
|
"ts-jest": "^24.3.0",
|
||||||
|
"typescript": "^3.7.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
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
|
||||||
|
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'
|
||||||
|
}
|
||||||
@@ -1,19 +1,30 @@
|
|||||||
const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
|
import fetch from 'node-fetch';
|
||||||
|
|
||||||
export default function getLatestVersion(): Promise<string> {
|
export function getURL(org: string, repo: string, api: string): string {
|
||||||
return new Promise((resolve, reject) => {
|
let url = '';
|
||||||
const xhr = new XMLHttpRequest();
|
|
||||||
const url: string = 'https://formulae.brew.sh/api/formula/hugo.json';
|
if (api === 'brew') {
|
||||||
xhr.open('GET', url);
|
url = `https://formulae.brew.sh/api/formula/${repo}.json`;
|
||||||
xhr.send();
|
} else if (api === 'github') {
|
||||||
xhr.onreadystatechange = function() {
|
url = `https://api.github.com/repos/${org}/${repo}/releases/latest`;
|
||||||
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
||||||
const result = JSON.parse(xhr.responseText);
|
|
||||||
const latestVersion: string = result.versions.stable;
|
|
||||||
resolve(latestVersion);
|
|
||||||
} else if (xhr.readyState === 4 && xhr.status !== 200) {
|
|
||||||
reject(`ERROR: got status ${xhr.status} of ${url}`);
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
});
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export default function getOS(platform: string) {
|
export default function getOS(platform: string): string {
|
||||||
if (platform === 'linux') {
|
if (platform === 'linux') {
|
||||||
return 'Linux';
|
return 'Linux';
|
||||||
} else if (platform === 'darwin') {
|
} else if (platform === 'darwin') {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ export default function getURL(
|
|||||||
extended: string,
|
extended: string,
|
||||||
version: string
|
version: string
|
||||||
): string {
|
): string {
|
||||||
const extendedStr = (extended: string) => {
|
const extendedStr = (extended: string): string => {
|
||||||
if (extended === 'true') {
|
if (extended === 'true') {
|
||||||
return 'extended_';
|
return 'extended_';
|
||||||
} else {
|
} else {
|
||||||
@@ -13,7 +13,7 @@ export default function getURL(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const ext = (os: string) => {
|
const ext = (os: string): string => {
|
||||||
if (os === 'Windows') {
|
if (os === 'Windows') {
|
||||||
return 'zip';
|
return 'zip';
|
||||||
} else {
|
} else {
|
||||||
@@ -21,11 +21,9 @@ export default function getURL(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const hugoName: string = `hugo_${extendedStr(
|
const hugoName = `hugo_${extendedStr(extended)}${version}_${os}-64bit`;
|
||||||
extended
|
const baseURL = 'https://github.com/gohugoio/hugo/releases/download';
|
||||||
)}${version}_${os}-64bit`;
|
const url = `${baseURL}/v${version}/${hugoName}.${ext(os)}`;
|
||||||
const baseURL: string = 'https://github.com/gohugoio/hugo/releases/download';
|
|
||||||
const url: string = `${baseURL}/v${version}/${hugoName}.${ext(os)}`;
|
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|||||||
37
src/index.ts
37
src/index.ts
@@ -1,36 +1,3 @@
|
|||||||
import * as core from '@actions/core';
|
import * as main from './main';
|
||||||
import * as exec from '@actions/exec';
|
|
||||||
import getLatestVersion from './get-latest-version';
|
|
||||||
import installer from './installer';
|
|
||||||
|
|
||||||
// most @actions toolkit packages have async methods
|
main.run();
|
||||||
async function run() {
|
|
||||||
const showVersion = async () => {
|
|
||||||
await exec.exec('hugo version');
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
const hugoVersion: string = core.getInput('hugo-version');
|
|
||||||
|
|
||||||
if (hugoVersion === '' || hugoVersion === 'latest') {
|
|
||||||
getLatestVersion().then(
|
|
||||||
async function(latestVersion): Promise<void> {
|
|
||||||
console.log(`Hugo version: ${latestVersion} (${hugoVersion})`);
|
|
||||||
await installer(latestVersion);
|
|
||||||
await showVersion();
|
|
||||||
},
|
|
||||||
function(error) {
|
|
||||||
core.setFailed(error);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
console.log(`Hugo version: ${hugoVersion}`);
|
|
||||||
await installer(hugoVersion);
|
|
||||||
await showVersion();
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
core.setFailed(error.message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
|
|||||||
@@ -4,58 +4,72 @@ import * as io from '@actions/io';
|
|||||||
import getOS from './get-os';
|
import getOS from './get-os';
|
||||||
import getURL from './get-url';
|
import getURL from './get-url';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
import {Tool, Action} from './constants';
|
||||||
|
|
||||||
|
export function getHomeDir(): string {
|
||||||
|
let homedir = '';
|
||||||
|
|
||||||
let tempDir: string = process.env['RUNNER_TEMPDIRECTORY'] || '';
|
|
||||||
if (!tempDir) {
|
|
||||||
let baseTempLocation: string;
|
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
baseTempLocation = process.env['USERPROFILE'] || 'C:\\';
|
homedir = process.env['USERPROFILE'] || 'C:\\';
|
||||||
} else {
|
} else {
|
||||||
baseTempLocation = `${process.env.HOME}`;
|
homedir = `${process.env.HOME}`;
|
||||||
}
|
}
|
||||||
tempDir = path.join(baseTempLocation, 'tmp');
|
|
||||||
|
core.debug(`homeDir: ${homedir}`);
|
||||||
|
|
||||||
|
return homedir;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function installer(version: string) {
|
export async function createWorkDir(): Promise<string> {
|
||||||
try {
|
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');
|
const extended: string = core.getInput('extended');
|
||||||
console.log(`Hugo extended: ${extended}`);
|
core.debug(`Hugo extended: ${extended}`);
|
||||||
|
|
||||||
const osName: string = getOS(process.platform);
|
const osName: string = getOS(process.platform);
|
||||||
console.log(`Operating System: ${osName}`);
|
core.debug(`Operating System: ${osName}`);
|
||||||
|
|
||||||
const hugoURL: string = getURL(osName, extended, version);
|
const toolURL: string = getURL(osName, extended, version);
|
||||||
core.debug(`hugoURL: ${hugoURL}`);
|
core.debug(`toolURL: ${toolURL}`);
|
||||||
|
|
||||||
let baseLocation: string;
|
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') {
|
if (process.platform === 'win32') {
|
||||||
baseLocation = process.env['USERPROFILE'] || 'C:\\';
|
const toolExtractedFolder: string = await tc.extractZip(
|
||||||
} else {
|
toolAssets,
|
||||||
baseLocation = `${process.env.HOME}`;
|
|
||||||
}
|
|
||||||
const hugoPath: string = path.join(baseLocation, 'hugobin');
|
|
||||||
await io.mkdirP(hugoPath);
|
|
||||||
core.addPath(hugoPath);
|
|
||||||
|
|
||||||
// Download and extract Hugo binary
|
|
||||||
await io.mkdirP(tempDir);
|
|
||||||
const hugoAssets: string = await tc.downloadTool(hugoURL);
|
|
||||||
let hugoBin: string = '';
|
|
||||||
if (osName === 'Windows') {
|
|
||||||
const hugoExtractedFolder: string = await tc.extractZip(
|
|
||||||
hugoAssets,
|
|
||||||
tempDir
|
tempDir
|
||||||
);
|
);
|
||||||
hugoBin = `${hugoExtractedFolder}/hugo.exe`;
|
toolBin = `${toolExtractedFolder}/${Tool.CmdName}.exe`;
|
||||||
} else {
|
} else {
|
||||||
const hugoExtractedFolder: string = await tc.extractTar(
|
const toolExtractedFolder: string = await tc.extractTar(
|
||||||
hugoAssets,
|
toolAssets,
|
||||||
tempDir
|
tempDir
|
||||||
);
|
);
|
||||||
hugoBin = `${hugoExtractedFolder}/hugo`;
|
toolBin = `${toolExtractedFolder}/${Tool.CmdName}`;
|
||||||
}
|
|
||||||
await io.mv(hugoBin, hugoPath);
|
|
||||||
} catch (error) {
|
|
||||||
core.setFailed(error.message);
|
|
||||||
}
|
}
|
||||||
|
await io.mv(toolBin, binDir);
|
||||||
}
|
}
|
||||||
|
|||||||
61
src/main.ts
Normal file
61
src/main.ts
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
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> {
|
||||||
|
try {
|
||||||
|
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;
|
||||||
|
} catch (e) {
|
||||||
|
core.setFailed(`Action failed with error ${e}`);
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||||
// "types": [], /* Type declaration files to be included in compilation. */
|
// "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. */
|
// "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'. */
|
"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. */
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||||
|
|
||||||
@@ -58,6 +58,8 @@
|
|||||||
/* Experimental Options */
|
/* Experimental Options */
|
||||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||||
|
|
||||||
|
"resolveJsonModule": true
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "**/*.test.ts"]
|
"exclude": ["node_modules", "**/*.test.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user