Skip to content

Commit c52e04f

Browse files
authored
40/microsite (#141)
feat: Create microsite using sbt-microsites and move docs there Closes #40 build: Use GitHub Actions instead of Travis fix: SSL Config test configuration in SBT fork mode
1 parent 39429e4 commit c52e04f

39 files changed

+470
-755
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
- name: Check/Compile/Test
17+
run: sbt checkAll

.github/workflows/pull.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PR Build
2+
on: [pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v1
9+
- name: Set up JDK 1.8
10+
uses: actions/setup-java@v1
11+
with:
12+
java-version: 1.8
13+
- name: Check/Compile/Test
14+
run: sbt checkAll

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: ["v*"]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Set up JDK 1.8
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 1.8
15+
- uses: actions/setup-ruby@v1
16+
with:
17+
ruby-version: '2.6'
18+
- name: Install jekyll
19+
run: gem install jekyll -v 4.0.0
20+
- name: Install GPG
21+
uses: olafurpg/setup-gpg@v2
22+
- name: Check/Compile/Test
23+
run: sbt checkAll
24+
- name: Release
25+
env:
26+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
27+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
28+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
29+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
30+
run: sbt ci-release
31+
- name: Publish Microsite
32+
env:
33+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
34+
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
35+
run: |
36+
eval "$(ssh-agent -s)"
37+
ssh-add - <<< "${DEPLOY_KEY}"
38+
git config --global user.email "[email protected]"
39+
git config --global user.name "scala-server-toolkit bot"
40+
sbt site/publishMicrosite

.mergify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pull_request_rules:
1111
conditions:
1212
- base=master
1313
- author=scala-steward
14-
- status-success=Travis CI - Pull Request
14+
- status-success=PR Build
1515
actions:
1616
merge:
1717
method: merge
@@ -21,7 +21,7 @@ pull_request_rules:
2121
- "#review-requested=0"
2222
- "#changes-requested-reviews-by=0"
2323
- "#approved-reviews-by>=1"
24-
- status-success=Travis CI - Pull Request
24+
- status-success=PR Build
2525
actions:
2626
merge:
2727
method: squash

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Scala Server Toolkit
22

3-
[![Build Status](https://travis-ci.org/avast/scala-server-toolkit.svg?branch=master)](https://travis-ci.org/avast/scala-server-toolkit)
3+
![Build Status](https://github.com/avast/scala-server-toolkit/workflows/Build/badge.svg)
44
[![Maven Central](https://img.shields.io/maven-central/v/com.avast/sst-bundle-zio-http4s-blaze_2.12)](https://repo1.maven.org/maven2/com/avast/sst-bundle-zio-http4s-blaze_2.12/)
55
[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-brightgreen.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)
66
[![Mergify badge](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/avast/scala-server-toolkit)](https://mergify.io)
@@ -19,7 +19,7 @@ sbt new avast/sst-seed.g8
1919

2020
## Documentation
2121

22-
**[Read it here](./docs/index.md)** or you can [deep dive into example code](example/src/main/scala/com/avast/sst/example/Main.scala).
22+
**[Read it here](https://avast.github.io/scala-server-toolkit)** or you can [deep dive into example code](example/src/main/scala/com/avast/sst/example/Main.scala).
2323

2424
### Articles
2525

0 commit comments

Comments
 (0)