Skip to content

Commit 5a5c4dc

Browse files
authored
Support serving documentation from github pages (#194)
1 parent 3dafe29 commit 5a5c4dc

File tree

573 files changed

+200
-234007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

573 files changed

+200
-234007
lines changed

.github/workflows/publish.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: publish to gh-pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: "1.16"
18+
19+
- name: Install Hugo
20+
run: go get github.com/gohugoio/hugo
21+
22+
- name: Build static pages
23+
run: |
24+
export BASE_URL=https://$(echo $GITHUB_REPOSITORY | cut -f1 -d"/").github.io/echox/
25+
cd website
26+
hugo -D --baseURL $BASE_URL
27+
28+
- name: Publish to gh-pages branch
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./website/public

.github/workflows/test.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
# Each major Go release is supported until there are two newer major releases. https://golang.org/doc/devel/release.html#policy
17+
go: [1.16]
18+
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- name: Set up Go ${{ matrix.go }}
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: ${{ matrix.go }}
25+
26+
- name: Checkout Code
27+
uses: actions/checkout@v2
28+
29+
- name: Run Tests
30+
run: |
31+
make test
32+

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

Gopkg.lock

Lines changed: 0 additions & 234 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)