Skip to content

Commit 15fcecb

Browse files
committed
Replaced Travis with GitHub Actions for building and publishing documentation
1 parent 953333f commit 15fcecb

File tree

6 files changed

+27
-19
lines changed

6 files changed

+27
-19
lines changed

.github/workflows/doc.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Generate and publish source documentation
2+
name: Documentation
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Set up 0install
10+
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends 0install-core
11+
- name: Clone repo
12+
uses: actions/checkout@v2
13+
- name: Build documentation
14+
run: doc/build.sh
15+
- name: Upload documentation
16+
uses: actions/upload-artifact@v1
17+
with:
18+
name: Documentation
19+
path: target/doc
20+
- name: Publish documentation
21+
uses: peaceiris/actions-gh-pages@v3
22+
if: startsWith(github.event.ref, 'refs/tags')
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
force_orphan: true
26+
publish_dir: target/doc
27+
cname: java.typedrest.net

.travis.yml

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

doc/.nojekyll

Whitespace-only changes.

doc/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/build.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ mkdir ..\target\doc | Out-Null
1515
0install run --batch https://apps.0install.net/devel/doxygen.xml
1616
if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"}
1717

18-
cp .nojekyll,CNAME ..\target\doc\
19-
2018
popd

doc/build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ rm -rf ../target/doc
66
mkdir -p ../target/doc
77

88
0install run https://apps.0install.net/devel/doxygen.xml
9-
10-
cp .nojekyll CNAME ../target/doc/

0 commit comments

Comments
 (0)